1845864 Members
4821 Online
110250 Solutions
New Discussion

cron problem

 

cron problem

Hi all,

I am having problems with my cron jobs. For about a day now, a few of my cron jobs have been failing. Within the cron log file, besides some cron jobs within the script, it has been stating rc=1. Ever since this has appeared some of the crob files have been failing.

I know that it has to do with comething about return code. I have stopped and retsrated cron, and it still seems to appear. I was wondering i anyone else had any suffestionsm as to how to fix this problem.

Thanks
Achille
4 REPLIES 4
Jaimin Parikh
Frequent Advisor

Re: cron problem

Hi,

Have you changed system time/time zone in near past?

Check the system run level state?Any changes to cron files recently?

If it is possible for you to restart the server I would suggest try doing that once.

-Jaimin Parikh
JAIMIN PARIKH : Share your knowledge and help those who need your help!!
Karthik_2
Regular Advisor

Re: cron problem

Are the same cron jobs that are failing everytime or jobs are failing at random?.
Also make sure that not more than one cron job is running.
You can checkup /var/spool/cron/crontabs to see if any one has edited the crontab file recently.
Even if u change the date backwards you cant predict cron behaviour.

Karthik
Its ALL in the MATRIX

Re: cron problem

Thanks for the repsonses.

The cron files have not been changed in a long time. The rc=1 message is literally happening to every cron job now. Any other help would be greatly appreciated.
James A. Donovan
Honored Contributor

Re: cron problem

Check out this thread, and check for undefined environment variables in your cron job scripts.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x1e6037f45ef7d4118fef0090279cd0f9,00.html
Remember, wherever you go, there you are...