exec 'foo.sh > foo.out'
causes problems, due to the command being called through a shell rather than directly exec'd. How can I set up the redirection to foo.out
first and then just exec 'foo.sh'
?
exec 'foo.sh > foo.out'
causes problems, due to the command being called through a shell rather than directly exec'd. How can I set up the redirection to foo.out
first and then just exec 'foo.sh'
?