I want to troubleshoot a cron job that worked fine until a recent modification, but I can't find the cron log file, where is it?
|
By default, cron does not log output of executed jobs. It is possible to log the fact that cronjobs have been executed, but that is not the default on OS X either. In order to investigate cronjob execution output, I suggest modifying your cronjob line to redirect STDOUT and STDERR to logfiles. In your crontab file or after running
Doing this should send STDOUT (normally printed or echo'ed output to STDOUT) to a text file named stdout.log in the /tmp directory, and STDERR to stderr.log in the temp directory. Many utilities use STDERR to print special error messages out when they're application errors, and not errors generated by the program's actual execution. (You can read more about STDERR on Wikipedia.) |
|||||||
|
|
Turned out when cron is running the job (as me), About the other suggestions and answers: By the way I am using http://s3tools.org/s3cmd to |
|||
|
|
cronjob I set it up withcron -eand I can see it withcron -land I am sure it worked on Lion and before that on Snow leopard for a long time. – Ali Jan 31 '12 at 17:54