How about:
passthru ("command1 > command2");
or
passthru ("command1 | command2");
HTH
Mikey
> -----Original Message-----
> From: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Sent: 16 July 2002 16:26
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] exec(), passthru()
>
>
> I am trying to run one command, then run a second command to pull the
> results from the first command. is there a way to do this? Its seems
> when I run the first command like
>
> passthru(command1)
>
> then run the second command to get the results from the first
>
> passthru(command2)
>
> the results of command2 are not what command1 processed, so they are not
> interacting how I need them to. Does anyone know of a solution to this?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w: <http://www.criticalcode.com/> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php