LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2011, 07:19 PM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,758

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
cron job question


I am trying to run my script every 5min (for testing, will adjust that later) using the following crontab -e as root

Code:
5	*	*	*	0	/bin/backup-servers
while it runs at 5 after the hour, it is not running at 10 , 15, etc... after the hour as it should...

CentOS 5.4

Code:
# uname -a
Linux rx30.localdomain 2.6.18-274.3.1.el5PAE #1 SMP Tue Sep 6 20:56:05 EDT 2011 i686 i686 i386 GNU/Linux
no updating the kernal is not an option.

Thanks.
 
Old 11-14-2011, 07:28 PM   #2
ptrivino
Member
 
Registered: May 2008
Location: San Diego CA
Distribution: CentOS
Posts: 40

Rep: Reputation: 5
Not 'every 5 min'...

Your crontab spec is "at 5 past the hour" not "every 5 minutes"

Use "*/5 * * ..."

Paul
 
1 members found this post helpful.
Old 11-14-2011, 07:39 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,758

Original Poster
Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Thank you very much. that it much more clear.
 
  


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
linux cron job duplicate job question cpthk Linux - Newbie 4 09-11-2009 09:52 PM
Cron job question s_linux Linux - General 1 07-23-2009 01:17 PM
cron job question kashyapvirgo Linux - General 6 02-24-2007 02:07 AM
Cron job question a2vr6 Linux - Newbie 8 11-17-2006 02:33 PM
Cron Job Question tarballed Linux - Newbie 4 06-20-2006 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:45 AM.

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