command output to variables
"Jai Sharma" <[email protected]>
| Newsgroups | org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <[email protected]> |
Hi All
I m PHP, Perl programmer , but finally I need C to program in LInux.
In perl I simply use `` operator to get command output.
$who_output = `who` ;
but in C , how can i get the output. Using system function i m easily
run the command. But how to get its output .
system("who");
Plz help