Re: Pipe $var to a shell command

From: Date: Fri, 13 Jun 2003 22:23:50 +0000
Subject: Re: Pipe $var to a shell command
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151431@lists.php.net to get a copy of this message
If $myoutput is "foo", it will attempt to get input from a file named "foo". Use "command | $myoutput" instead. Tim T wrote:
I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec("command < $myoutput") however this is not quite right. Anybody have any ideas??
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#151431) next »