Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-20-2005, 02:09 PM   #1
LQ Newbie
Registered: Jan 2004
Posts: 23

Rep: Reputation: 15
crontab job entry

I want to verify the syntax of my crontab jobs before I set them to run on my server.

I have 2 scripts that I want to run automated.
Script 1 would run at 12 am, 4 am, 8am, 12pm, 4pm, 8pm (ie every 4 hours)
Script 2 would run at 11:30 am. 3:30 am, 7:30am, … every 4 hour 30min before the hour.

Now script 2 will supersede script 1, from my reading I can up with this syntax for crontab

30 3,7,11,15,19,23 * * * “script2”
0 0,4,8,12,16,20 * * * “script1”

So, 2 questions... 1, does the syntax look correct for what I’m trying to do and 2 will “script2” run first because of the time or will I have to do something else?


Last edited by notolerance; 02-20-2005 at 02:10 PM.
Old 02-20-2005, 02:26 PM   #2
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50

Looks fine to me.
Old 02-20-2005, 02:40 PM   #3
LQ Newbie
Registered: Jan 2004
Posts: 23

Original Poster
Rep: Reputation: 15
OK, well I put it on the server and see what happens. THX


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
crontab entry? Master Fox Linux - Software 4 08-23-2005 01:20 PM
cronjob entry in crontab rockwell_001 Linux - General 2 06-30-2004 02:59 PM
making an entry in crontab through code (perl) akaash Programming 2 05-17-2004 03:36 AM
crontab entry pilipk01 Linux - General 4 11-19-2003 07:53 PM
crontab job to restart tomcat... barbean Programming 0 11-17-2003 12:58 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 AM.

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