LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   crontab job entry (https://www.linuxquestions.org/questions/linux-software-2/crontab-job-entry-292685/)

notolerance 02-20-2005 02:09 PM

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?

THX

satinet 02-20-2005 02:26 PM

Hello,

Looks fine to me.

notolerance 02-20-2005 02:40 PM

OK, well I put it on the server and see what happens. THX


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