RE: [PHP-WIN] exec(), passthru()
| From: | Mikey | Date: | Tue, 16 Jul 2002 16:24:40 +0000 |
| Subject: | RE: [PHP-WIN] exec(), passthru() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14795@lists.php.net to get a copy of this message | ||
These are standard command line operators, I am not sure if you can use the
pipe '|' operator in windows, but I know you can use the '>' operator to
redirect the output from one program into another... I have since realised
that this would be completely useless for you if the first command cannot
redirect it's output to STDOUT (i.e. the console window)
> -----Original Message-----
> From: Matt Babineau [mailto:matt@criticalcode.com]
> Sent: 16 July 2002 17:12
> To: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] exec(), passthru()
>
>
> What does that operator do?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e: matt@criticalcode.com
> p: 603.943.4237
> w: http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>
> -----Original Message-----
> From: Mikey [mailto:mikey@splatted.net]
> Sent: Tuesday, July 16, 2002 11:41 AM
> To: Matt Babineau; php-windows@lists.php.net
> Subject: RE: [PHP-WIN] exec(), passthru()
>
>
> 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
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>