this one uses pipe....

$command=`find $verzeichnis. -iname $DateiPattern |sort -f`;
$verzeichnisliste = explode ("\n",$command);

sebastian

-----Ursprungliche Nachricht-----
Von: Martin Kong [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 21. Februar 2001 15:45
An: [EMAIL PROTECTED]
Betreff: [PHP] How to pipe a command output into another command


>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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to