Re: How o acheive this in C++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Absoultely, not the right list.

Anyway try it using the tee command and capture the output into a file. Alternatively, you can write it as a script and run the system on the script.

Harsha.

Lalit Seth wrote:

Thanks for Reply.

What i wanted is to make call from C++.
like
retval = System("ps -ale");

But this prints the result on console.

I wanted some how i can get that back in some variable/structure in C++.

From: Ramana Radhakrishnan <ramana.radhakrishnan@xxxxxxxxxx>
To: Lalit Seth <laalit_seth@xxxxxxxxxxx>
CC: gcc-help@xxxxxxxxxxx
Subject: Re: How o acheive this in C++
Date: Thu, 04 Nov 2004 13:13:24 +0530

Hi,

<snip>

man proc
man kill
man raise
man signal

Also, not the right list to ask about Unix system programming. This is the place for more about using and building GCC .

cheers
Ramana


_________________________________________________________________
Mergers, takeovers, buyouts. Get all the latest biz bytes. http://www.msn.co.in/business/ Tune in to MSN Business!



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux