stdout and stderr of script doesn't get redirected when executed by cron

Posted by gletscher on Super User See other posts from Super User or by gletscher
Published on 2010-03-28T21:17:32Z Indexed on 2010/03/28 21:23 UTC
Read the original article Hit count: 233

Filed under:
|
|
|
|

Hi, when I execute

 ./script &>> log.txt

I get a nice logfile, but if I have the same command executed by cron, lets say the crontab looks like this:

* * * * * '/home/user/script &>> /home/user/log.txt'

the log.txt will just be empty, I tried " and ' and ` and no ticks to enclose the command, any idea why the streams won't get written into the file?

© Super User or respective owner

Related posts about cron

Related posts about crontab