LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2010, 11:55 PM   #1
LinpusKelvin
Member
 
Registered: May 2010
Posts: 39

Rep: Reputation: 15
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
 
Old 06-23-2010, 12:30 AM   #2
subho.d
Member
 
Registered: Jun 2010
Location: INDIA
Distribution: All Linux & Unix
Posts: 86

Rep: Reputation: 19
/etc/init.d/crond restart
It it is not working then see the
and log
Quote:
man crontab
 
Old 06-23-2010, 12:53 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
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)?
 
1 members found this post helpful.
Old 06-23-2010, 01:23 AM   #4
LinpusKelvin
Member
 
Registered: May 2010
Posts: 39

Original Poster
Rep: Reputation: 15
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
 
Old 06-23-2010, 05:39 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Quote:
Originally Posted by LinpusKelvin View Post
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?
 
Old 06-24-2010, 12:08 AM   #6
LinpusKelvin
Member
 
Registered: May 2010
Posts: 39

Original Poster
Rep: Reputation: 15
it is my source code error.

After I checked and found in the log file.

thanks for helping
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail to start X as user satimis Ubuntu 0 08-17-2007 11:34 AM
Fail to start X satimis Ubuntu 2 07-24-2007 11:35 PM
Fail to start proftpd satimis Linux - Server 2 03-30-2007 10:40 AM
Fail to start Gnome satimis Fedora 1 07-30-2004 10:30 AM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration