How to pipe a command output into another command
| From: | Martin Kong | Date: | Wed, 21 Feb 2001 14:44:54 +0000 |
| Subject: | How to pipe a command output into another command | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40956@lists.php.net to get a copy of this message | ||
From within PHP, I'm trying to execute an external command and pipe (|)
the result into another command, then capture the output. I've tried
everything, exec, system, passthru, popen and backtick, and still could
get it to work. Has anyone done it before? Is it possible with PHP?
Running PHP 4.0.1pl2 as a Apache module.
Thanks.