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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php