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 |
/etc/init.d/crond restart
It it is not working then see the and log Quote:
|
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 |
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 |
Quote:
|
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. |