Re: Pipe $var to a shell command
| From: | DvDmanDT | Date: | Fri, 13 Jun 2003 22:48:30 +0000 |
| Subject: | Re: Pipe $var to a shell command | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151430@lists.php.net to get a copy of this message | ||
Oh, sorry, I missunderstood you... You want $myoutput to be the programs
input, not the output of the program... Hmm... Look into popen(), fputs()
and fclose()...
"Tim T" <tim@bwsweb.net> skrev i meddelandet
news:20030613215805.43303.qmail@pb1.pair.com...
> 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??
>
>