1828340 Members
3824 Online
109976 Solutions
New Discussion

cron failing to execute

 
Jeroen Peereboom
Honored Contributor

Re: cron failing to execute

Ravi,

change your script to do an echo 'cleartool job started at' `date` >> /tmp/cleartool.logfile.
And also just the same echo without redirection. You should receive a mail containing this echo-output.

Or add a 'set -xv' command at the beginning of your script to see the execution of the script. Should also go to your mailbox.

JP
Ravi_8
Honored Contributor

Re: cron failing to execute

Hi,

The mail shows these error(s):

subject: Anacron job 'cron.daily'

/etc/cron.daily/00webalizer:

warning: Truncating oversized date field
warning: Truncating oversized date field
warning: Truncating oversized date field
warning: Truncating oversized date field.....
never give up
Fred Ruffet
Honored Contributor

Re: cron failing to execute

Concerning environment, there should be missing locales (importants in dates display). Try to see what variables are set in your shell and try to set them in your program.

Just to know : Do you really want to use anacron and not cron ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ravi_8
Honored Contributor

Re: cron failing to execute

Fred

I would like to use cron not the anacron
never give up
Fred Ruffet
Honored Contributor

Re: cron failing to execute

just stop anacron, start cron :
service stop anacron
service start crond

before next reboot, use "setup" utility, disable anacron and enable cron

Regards,

Fred


--

"Reality is just a point of view." (P. K. D.)