Re: Piping and the CLI parser
| From: | Nicolas Frisby | Date: | Wed, 06 Aug 2003 13:29:15 +0000 |
| Subject: | Re: Piping and the CLI parser | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-158460@lists.php.net to get a copy of this message | ||
Sorry Jason, I didn't catch my typo about the echo program until
recently.
Regardless of that, do you know anything of how the piping mechanism
works?
Thanks for your time,
-Nick
"Jason Wong" <php-general@gremlins.biz> wrote in message
news:<200308061459.45915.php-general@gremlins.biz>...
> On Tuesday 05 August 2003 13:25, Nicolas Frisby wrote:
>
> [snip]
>
> > executes the script with arguments), I attempted some piping; which,
> > through very shallow research, I've come to think uses STDIN.
>
> I don't think it does.
>
> > It fails; no piping whatsoever. Even the simplest 'dir | echo.php',
> > where echo just implodes() $argv and echoes, gives no output.
>
> If all you're interested is in the results and not how you get there,
> then
> forget about $argv and just simply parse STDIN to get your
'arguments'.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development
*
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> Wonderful day. Your hangover just makes it seem terrible.
> */
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003