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




-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to