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:[EMAIL PROTECTED]]
> Sent: 16 July 2002 17:12
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] exec(), passthru()
>
>
> What does that operator do?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e: [EMAIL PROTECTED]
> p: 603.943.4237
> w: http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>
> -----Original Message-----
> From: Mikey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 11:41 AM
> To: Matt Babineau; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] exec(), passthru()
>
>
> 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
>
>
> --
> 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

Reply via email to