On Mar 15, 2005, at 2:36, Davy Durham wrote:
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>
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
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