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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRON not running after server rebuild Openserver 5.05

Status
Not open for further replies.

sharper

MIS
Sep 4, 2001
109
IE
Hello,

I have recently rebuilt a SCO Openserver 5.05. I installed a fresh copy of the OS and restored users and user data to correct locations. Users can login, third party database app is working fine, printing through facetwin is working also.

Everything seems to be working fine except cron. I restored the files in /usr/spool/cron/crontabs and checked permissions. Now, of course, the nightly backup doesn't run (the script called in cron runs fine manually) and the other scripts like the transfer of files to a different server doen't run. I added a job myself to the cron to write the system date every five minutes to a file but the file wan't even created. There is also no mail confirmations being sent about cron.

What have I left out of the restore, if anything, and is there a way to repair this from a remote location? (I have a modem whith which I dial in to.)

any help would be appreciated.

regards.
 
Is the cron process running?

#ps -ef|grep cron
root 246 1 0 Jan-07 ? 00:00:03 /etc/cron


If it is not then check that the FIFO file does not exist, if it does rm it.
/usr/lib/cron/FIFO

VD
 
thanks for the reply...

sorry for not inclluding this, but I have killed cron and restarted it to no effect.

sharper
 
more...

when I run the crontab -l command it gives me a list of the scheduled tasks. The backup script is in there and all other scripts also. when I try and start cron it says it's already running but the jobs in crontabs don't run
 
Are there any errors in the mail files from cron?

When you started cron did you use the sd command to start the deamon without the LUID?

#sd cron

VD
 
VD,
yes I did use sd cron to restart..

there is no mail whatsoever regarding cron (an this server is should be giving mail confirmations about cron every hour or so!!)

still no joy..
:(

thanks for the prompt reply..
 
The CRON patch may help you. 5.0.4,5.0.5, and 5.0.6 have a glitch that is corrected by the patch.
You can have jobs that run fine from command line that just won't run from CRON. Ed Fair
unixstuff@juno.com
Any advice I give is my best judgement based on my interpretation of the facts you supply. Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top