-
Crontab help!!!
Hi all,
I wish to schedule a script that would run every two hrs everyday except between 8:00pm and 10:00pm
Thanks...
Looking for the greatest evil in the world? Look in the mirror.
-
Let me clarify some more.....
I wish to schedule a script that would run every two hrs everyday starting at midnight except between 8:00pm and 10:00pm
Thanks...
Looking for the greatest evil in the world? Look in the mirror.
-
I haven't tried this but I think either should help:
crontab -e
#type following
01 0,2,4,6 * * *
01 12,14,16,18,20,22 * * *
crontab -e
#type following
01 0-6 * * *
01 12-22 * * *
HTH
-
Originally Posted by Tuma
Let me clarify some more.....
I wish to schedule a script that would run every two hrs everyday starting at midnight except between 8:00pm and 10:00pm
Thanks...
what about this?.....for something that runs from midnight everyday every 2 hrs except between 8:00pm and 10:00pm
00 0,2,4,6,8,10,12,14,16,18 * * * /xxxxx/xxxxxx.sh 1>/dev/null 2>&1
Looking for the greatest evil in the world? Look in the mirror.
-
Originally Posted by Tuma
what about this?.....for something that runs from midnight everyday every 2 hrs except between 8:00pm and 10:00pm
00 0,2,4,6,8,10,12,14,16,18 * * * /xxxxx/xxxxxx.sh 1>/dev/null 2>&1
Yes that should work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|