YYYEE!
Finally - It works!!
I used the following:
$fp = popen("$mycommand", "w+");
fwrite($fp, $myoutput);
Thank you for your assistance. I've been looking at this for 2 days and
nothing was coming to mind!
Again thank you!
Tim
"Dvdmandt" <[EMAIL PROTECTED]> wrote in message
Ok, last reply from me I think... Must read until I know for sure before I
post...
http://se.php.net/manual/en/function.proc-open.php seems to be just what you
need!
"Tim T" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I have a mem var $myoutput I would like to pipe it to the i
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" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I have a mem var $myoutput I would like to pipe it to the input
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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a mem var $
Like $myoutput=`command`; ?
"Tim T" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> 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??
5 matches
Mail list logo