Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduling Event

Status
Not open for further replies.

stoolpigeon

Programmer
Aug 1, 2001
309
US
I have written a script to run back ups on a database.

Now I want to create a schedule for those back ups to run. I have a decent idea of how to set up a cron job but it does not seem like that tool can do what I need.

I would like to execute this batch file every 2 hours starting at 0:00 (midnight) running to 02:00. Then not running for 6 hours. Start back up at 08:00 and run until 23:59. (Basically I want it to run from 8 a.m. until 2 a.m. the next day and not run between 2 and 8 every morning so that I can do some other maintenance stuff)

Can I do that in a cron job or is there some other utility that I can use?


Thanks much for the help,
Ron

 
Cron will do exactly that, you can specify how often and when a item runs.

You can work directly with the cron files.. or if you need/want a "GUI" then I'd recommend "Webmin"
Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top