Re: stdout as input

From: Date: Thu, 24 Sep 2009 15:35:45 +0000
Subject: Re: stdout as input
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-298318@lists.php.net to get a copy of this message
> Isn't it simpler with > http://www.php.net/manual/en/function.shell-exec.php > ? Perhaps. But the command to execute would be relatively arbitrary. What I'm trying to do is set up a script that will filter the results of a grep. But what I'm grepping and where I'm starting from would change. I suppose I could pass those arguments to my script and access it using argv but I'm actually kind of curious how (if) I can access output which has been piped (or redirected) to my script. thnx, Christoph

« previous php.general (#298318) next »