1752290 Members
4375 Online
108786 Solutions
New Discussion юеВ

cron

 
Ravinder Singh Gill
Regular Advisor

cron

Hi guys. I put an entry in Cron to stop SAP processes on Unix server for the early hours of Sunday morning. Initially I had put the date as 23/10/05 until I realised that the Daylight saving time change was happening a week later, I then changed it to 30/10/05. However it seems as though that SAP was still shutdown on the 23rd (incorrect date but appropriate time). Can anybody explain why this could be?
8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: cron

Post,

crontab -l

or

cat /var/spool/cron/crontabs/

entries. May be crontab is not running with update.

-Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: cron

Check with your /var/adm/syslog/syslog.log for cron related entries. Also, # cat /var/spool/cron/crontabs/root

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: cron

Cron log is,

/var/adm/cron/log file. It may gives more relavent details.

-Muthu
Easy to suggest when don't know about the problem!
Jayasuntar
Valued Contributor

Re: cron

Hi Ravinder,

From whicg user u edited and submitted the file.

From the root user
execute #crontab -l and list the entries.

If u want know which user (owning cron), excuted on 23rd, please see the cronlog at /var/adm/cron/log , look for the user name. Edit the crontab for the particular user if he has entry on the crontab.

Please check log and edit the crontab with crontab -e, will solve ur problem.

Regards

Jay

Ravinder Singh Gill
Regular Advisor

Re: cron

I am root user. I actually inputted the entry and then I later changed the date.
Arunvijai_4
Honored Contributor

Re: cron

Can you check /var/adm/cron/log and # cat /var/spool/cron/crontabs/root for any discrepancies ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Ravinder Singh Gill
Regular Advisor

Re: cron

I have also checked the log file and it is root
Muthukumar_5
Honored Contributor

Re: cron

Post,
/var/spool/cron/crontabs/root file information for this SAP process.

and


/var/adm/cron/log file information. It will be helpful to help u.

-Muthu
Easy to suggest when don't know about the problem!