[SOLVED] Cron Schedule
I am trying to create two custom cron schedules for some scripts I am creating. This is my first time doing so. I have searched online and below is what I have come up with.
The first one I only want to run at 6pm, 10pm, and 11pm every Saturday. Would this be how it is: 0 18,22,23 * * 0
The second one I only want to run at 3am every Sunday. Would this be how it is: 0 3 * * 6
Thanks!
(Edited: Removed the line about missing fields as that did not apply any longer.)
The first one I only want to run at 6pm, 10pm, and 11pm every Saturday. Would this be how it is: 0 18,22,23 * * 0
The second one I only want to run at 3am every Sunday. Would this be how it is: 0 3 * * 6
Thanks!
(Edited: Removed the line about missing fields as that did not apply any longer.)
1 Comment
[ + ] Show comment
-
Using cron job generator like http://www.crontab-generator.org/ that very easy way. - Langston 10 years ago
Answers (2)
Please log in to answer
Posted by:
airwolf
14 years ago
Posted by:
ustacp
14 years ago
I guess I switched the days by accident. I read somewhere that 0 and 7 were both fields for Sunday. Is that not correct? Not that it matters that much. As far as the missing fields, I figured that out but forgot to remove it from my post before I posted it. It was the "*". I did not realize I needed to add those at first. Thanks for looking it over for me!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.