Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cron job not running 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I tried to go into crontab -e and start a cron job but when I exit the crontab -e I get the following message and my jobs never run.

[tt]


"/tmp/crontabO5aaio" 3 lines, 78 characters
cron may not be running - call your system administrator[/tt]

Where do I check to see if cron is not running and how do i get it running???
 
To see if it is running:

ps -ef |grep cron

To start if not running:

/usr/sbin/cron

To make sure it starts at startup:

Make sure this file exists; /etc/rc2.d/S75cron

Will
 

Here is my ps -ef. Does this tell me if cron is working or not????

[tt]
Unix-> ps -ef | grep cron
root 550 1 0 Apr 15 ? 0:30 /usr/sbin/cron
Smith 22222 22222 0 06:06:59 pts/1 0:00 grep cron [/tt]
 
Go to /etc/rc2.d and type:

./S75cron start

If cron is running, you should get a message saying that cron is running. If it says it is, try scheduling a simple job for 5 mins time (ie system time) and check whether it executes. If not, post back. HTH.
 
Hi,
It shows that cron daemon is running.
I believe it will work if you restart it.
Do you have S75cron under /etc/rc2.d directory.
If you have;
first stop cron >> S75cron stop
than start it >> S75cron start
if you do not have S75cron
kill -9 <cron_pid>
/usr/bin/rm -f /etc/cron.d/FIFO
/usr/bin/cron &

AND please check log file under /var/cron directory. Does it says anything?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top