RE: [PHP-WIN] exec(), passthru()
| From: | Mikey | Date: | Tue, 16 Jul 2002 15:41:16 +0000 |
| Subject: | RE: [PHP-WIN] exec(), passthru() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14793@lists.php.net to get a copy of this message | ||
How about:
passthru ("command1 > command2");
or
passthru ("command1 | command2");
HTH
Mikey
> -----Original Message-----
> From: Matt Babineau [mailto:matt@criticalcode.com]
> Sent: 16 July 2002 16:26
> To: php-windows@lists.php.net
> 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:matt@criticalcode.com> matt@criticalcode.com
> p: 603.943.4237
> w: <http://www.criticalcode.com/>
> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>