1827280 Members
3316 Online
109717 Solutions
New Discussion

Cron issue

 
SOLVED
Go to solution
Duffs
Regular Advisor

Cron issue

Hi,

I am experiencing unusual cron behaviour where my script is scheduled to run every 15 minutes but doesn't run. However when I run this script manually it works fine, therefore the cron simply isn't picking up/runninng my script. All other cron jobs are running fine.

There are no entries in the cron log either.

Below is an example of my cron log entry:

01,16,31,46 * * * * /u2/wwcus/scripts/ftp-to-edi.pl

Rgds,
Dermot
5 REPLIES 5
MarkSyder
Honored Contributor

Re: Cron issue

Two possible answers that spring to mind:

1. Is there a command in the script that requires you to be in a particular directory? Make sure you use complete paths.

2. Does the script depend on a user's .profile having been run? Cron doesn't work this way.

Have you checked /var/adm/cron/log to see if it is trying to run the program?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Henk Geurts
Esteemed Contributor

Re: Cron issue

hi Dermot
you might use
01,16,31,46 * * * * /u2/wwcus/scripts/ftp-to-edi.pl > /place/to/log/ftp.log 2>&1
to check if anything is logged then...
hope it helps
regards

Eric Antunes
Honored Contributor
Solution

Re: Cron issue

Hi Dermot,

Did you changed server time backward? If you did so (you should have ended cron deamon before), restart cron deamon.

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
Duffs
Regular Advisor

Re: Cron issue

Thanks lads,

Problem resolved.

I re-entered the entry into the cron and stopped and started the cron and everything now seems to be working fine.

Kind Rgds,
Dermot
Duffs
Regular Advisor

Re: Cron issue

Issued Resolved.