1836633 Members
1725 Online
110102 Solutions
New Discussion

Re: Cron Problem

 
Kevin Lai_1
Occasional Advisor

Re: Cron Problem

This works for me.

Backup and the remove the /usr/spool/cron/.cronaids files and restart the cron daemon.



Elmar P. Kolkman
Honored Contributor

Re: Cron Problem

As Pete mentioned before, the cron log should contain 2 lines for each command run: a line indicating when the script started and a line to indicate when the script stopped.

But there is one more thing to look into: are you by any chance redirecting output? Could it be that the logfile you are using is not accessable by the script (for instance because the script runs as a user, but you tested it as another) or the directory where the logfiles should reside being removed?

And you might check the mail files for the owner of the crontab and root for any hints. Cron mails a lot of its errors. Also check the mailqueue for messages it cannot send, resulting in being dumped to dead.letter files after multiple retries.
Every problem has at least one solution. Only some solutions are harder to find.
Arturo Galbiati
Esteemed Contributor

Re: Cron Problem

Hi,
have you look at the elm for the user where script ran?
you don't redirect output to a file it's mailed to the user.
HTH,
Art