How o acheive this in C++

Sriharsha Vedurmudi sriharsha.v@redpinesignals.com
Thu Nov 4 08:39:00 GMT 2004


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@codito.com>
>> To: Lalit Seth <laalit_seth@hotmail.com>
>> CC: gcc-help@gcc.gnu.org
>> 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!
> 



More information about the Gcc-help mailing list