I\'d like to log cron output to a dated file — /tmp/log/cron-2014-12-17.log
/tmp/log/cron-2014-12-17.log
$ mkdir /tmp/log $ chmod 777 /tmp/log $ ls -lah /tmp/log drwxrwxrwx
This will fix your issue:
0 0 * * * /some/path/to/a/file.php >> /tmp/log/cron-`date +\%F`.log 2>&1