Operating System - HP-UX
1834090 Members
2089 Online
110063 Solutions
New Discussion

Re: cron job not getting started

 
Rajesh G. Ghone
Regular Advisor

cron job not getting started

Hello All,
My cron jobs is not getting started in the schedule time.This is my schedule job
0 10,21 * * 1-6 /usr/sbin/sar -u 1 10>>/hp/cpuutilisation
Please note that cron ps is running.

Regards,
Rajesh G
Rajesh Ghone
8 REPLIES 8

Re: cron job not getting started

Check if cron is running or not
#ps -ef|grep cron

if cron is not running to start cron give
#/sbin/init.d/cron start
Check again now cron should get started

#ps -ef|grep cron
T G Manikandan
Honored Contributor

Re: cron job not getting started

Everything looks normal except whether you have a "space" in between 10 and >>

It should be 10 >> and not 10>>

Revert
T G Manikandan
Honored Contributor

Re: cron job not getting started

Everything looks normal except whether you have a "space" in between 10 and >>

It should be 10 >> and not 10>>

Revert
Rajesh G. Ghone
Regular Advisor

Re: cron job not getting started

Hi T.G.,
I have got same thing configured on other servers without space in between 10&>> still it works.

Regards,
Rajesh G.
Rajesh Ghone
Suhas_2
Regular Advisor

Re: cron job not getting started

Hi Rajesh,
Pls check /var/cron/log file. You may be able to debug from there.

Regards...
Suhas
Never say "Die"
Rajesh G. Ghone
Regular Advisor

Re: cron job not getting started

Hi Suhas,

There is no cron directory in /var.

Regards,
Rajesh G.
Rajesh Ghone
Rainer von Bongartz
Honored Contributor

Re: cron job not getting started

It should be

/var/adm/cron

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Yair Goldel
Advisor

Re: cron job not getting started

Hi
The output and error of the cron you can find in your mail

run "mail" in the user that run the cron the answer shuold be there !!!!