PDA

View Full Version : Scheduling a program/function execution?



Aedile
08-12-2005, 09:11 AM
Hey, I'm somewhat new to the GNU world, but I was wondering if it were possible to schedule a function. Basically, if I wanted Function A to run between the hours of 8 AM and 8 PM on such and such a day, and Function B to run between 8 PM and 12 AM, and Function C to run between 12 AM and 8AM, what would I do?

Under Windows, I know there was a scheduling API. Is there a similar thing for Linux?

Thanks.

Salem
08-12-2005, 10:19 AM
man crontab

crontab is the program you use to edit the files which control the cron process, which is used to make things happen at regular intervals.

Eg.
00 */4 * * * /home/me/jobs
makes 'jobs' run every 4 hours.