LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   crontab fail to start, pls help? (https://www.linuxquestions.org/questions/linux-newbie-8/crontab-fail-to-start-pls-help-815815/)

LinpusKelvin 06-22-2010 11:55 PM

crontab fail to start, pls help?
 
I type this 10,20,30,40,50 * * * * /root/auto.pl

my log file
Jun 23 10:10:01 localhost crond[7702]: (root) CMD (/root/auto.pl)
Jun 23 10:20:01 localhost crond[12022]: (root) CMD (/root/auto.pl)
Jun 23 10:30:01 localhost crond[14610]: (root) CMD (/root/auto.pl)
Jun 23 10:40:01 localhost crond[18676]: (root) CMD (/root/auto.pl)
Jun 23 10:50:01 localhost crond[22402]: (root) CMD (/root/auto.pl)
Jun 23 11:01:01 localhost crond[29476]: (root) CMD (run-parts/etc/cron.hourly)

but my application doesnt run at all.

my script is in perl language

Thanks in advance

subho.d 06-23-2010 12:30 AM

/etc/init.d/crond restart
It it is not working then see the
and log
Quote:

man crontab

colucix 06-23-2010 12:53 AM

The log actually tells that cron is alive and running. The problem can be into the script itself.

Checks:
a. be sure the script is executable
b. check the root's mail (using the mail command) to see if cron sent any standard error or standard output related to this job
c. redirect the standard output and the standard error to a file, at least during the test phase:
Code:

10,20,30,40,50 * * * * /root/auto.pl > /root/cron.log 2>&1
Anyway, what this script is supposed to do? What does it make you suspect that the script did not run properly (what is the expected result)?

LinpusKelvin 06-23-2010 01:23 AM

Thanks u all for the reply.

The commands I tried it already previously, still doesnt work.

1. I trying to archive website using software, but I always wanted it to do it automatically.

2. The auto.pl script is actually to start the software for achiving.

Thanks in advance

colucix 06-23-2010 05:39 AM

Quote:

Originally Posted by LinpusKelvin (Post 4012263)
The commands I tried it already previously, still doesnt work.

You've marked this thread as SOLVED so I guess the mystery has been revealed. Just out of curiosity, did you find some error messages in the root's mailbox?

LinpusKelvin 06-24-2010 12:08 AM

it is my source code error.

After I checked and found in the log file.

thanks for helping


All times are GMT -5. The time now is 06:19 AM.