Re: [PHP] Pipe $var to a shell command

2003-06-13 Thread Leif K-Brooks
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. Anybo

[PHP] Pipe $var to a shell command

2003-06-13 Thread Tim T
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?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php