Re: Pipe $var to a shell command

From: Date: Fri, 13 Jun 2003 22:22:26 +0000
Subject: Re: Pipe $var to a shell command
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151429@lists.php.net to get a copy of this message
maybe try exec? $instruction = "$myOutput > command "; # for piping (as I recall) I used to do the input from the right, but I don't think that will make a difference exec ($instruction); Bobby exec ("command "Tim T" <tim@bwsweb.net> wrote in message 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?? > >

« previous php.general (#151429) next »