note 32759 rejected from ref.exec by alindeman
| From: | alindeman@php.net | Date: | Fri, 06 Jun 2003 01:19:43 +0000 |
| Subject: | note 32759 rejected from ref.exec by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49832@lists.php.net to get a copy of this message | ||
Note Submitter: akumainsanity@hotmail.com
----
Hi, I know this is a PHP forum, but maybe you can help me. My question is: is there an analog
command in C/C++ for PHP's shell_exec?
I know there's the system() command in C/C++, but it doesn't return the complete output as
string.
For example, how would you "translate" this from PHP to C/C++?
$var = shell_exec("ls"); //$var will contain the output string
Thanx
L. Molina