Re: Re: CLI issue: Changing STDERR

From: Date: Tue, 15 Mar 2005 01:36:02 +0000
Subject: Re: Re: CLI issue: Changing STDERR
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-15445@lists.php.net to get a copy of this message
Iteresting.. but no, that won't work because the redirection is a construct of a running shell.. not the exec system function that would be interpreting that line. That got me thinking tho.. to try something like #!/bin/bash -c exec /usr/bin/php 2>/path/filename which would seem to maybe work if the php interpreter got the rest of the file as input. But, apparently bash isn't liking -c after it's already been used on a sh-bang. :( Christian Stadler wrote:
Just an idea out of the blue: Did you try your luck with the Sha-Bang? e. g. #!/usr/bin/php -q 2>/path/filename Regards, Christian Stadler


« previous php.internals (#15445) next »