Re: CLI issue: Changing STDERR

From: Date: Tue, 15 Mar 2005 00:55:00 +0000
Subject: Re: CLI issue: Changing STDERR
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-15443@lists.php.net to get a copy of this message
Davy Durham schrieb: > On Linux: I'm converting some bash scripts to php.. in the bash scripts > I sometimes do at the very top: > > " exec 2>/path/filename " > > Which changes where stderr goes because it closes and reopens file > descriptor 2 [snipp] > Is there a way of changing the actual process's file descriptor 2 to > something else. (or any fd for that matter) 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 (#15443) next »