[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


(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 8 years ago

Answers (2)

Posted by: airwolf 12 years ago
Red Belt
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.
Posted by: ustacp 12 years ago
Second Degree Blue Belt
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.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ