3
./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?
+1 for also redirect the std error! No wonder it's outputting nothing. – User – 2016-07-20T23:04:46.990