CLI issue: Changing STDERR
| From: | Davy Durham | Date: | Mon, 14 Mar 2005 23:41:51 +0000 |
| Subject: | CLI issue: Changing STDERR | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-15437@lists.php.net to get a copy of this message | ||
Hey.. seeing as there is not way specified in the docs that I can find, I thought I'd email this list as there may be an undocumented way of doing it.
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
I've played around and around with things with some php cli scripts, but cannot do it.
Is there a way of changing the actual process's file descriptor 2 to something else. (or any fd for that matter)
Thanks,
Davy