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


(Edited: Removed the line about missing fields as that did not apply any longer.)
1 Comment   [ - ] Hide Comment


  • Using cron job generator like http://www.crontab-generator.org/ that very easy way.
Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


The Saturday schedule should have a day of 6 and the Sunday job should run on day 7.

0 18,22-23 * * 6

0 3 * * 7

I don't know what you mean by missing fields.
Answered 04/08/2010 by: airwolf
Tenth Degree Black Belt

Please log in to comment
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!
Answered 04/08/2010 by: ustacp
Second Degree Blue Belt

Please log in to comment