exec32 Scripting Language


cron Task Scheduler

The cron Task Scheduler is a simple mechanism to run scripts at timed intervals. The following schedules are supported:
  1. Run a script once a day, at a certain time.
  2. Run a script after an interval.
You can enter up to 20 cron jobs into the cron dialog. cron jobs are stored in an ini file, and the cron dialog displays the contents of the ini file. Jobs are set up in the following format:

jobnumber= start_time ; interval ; script_name.e

Example:

[cron]
job1= 10:45AM ; 0:00 ; C:\PROGRAM FILES\Rsc\EXEC32\Scripts\backup.e
job2= 8:00AM ; 10:00 ; C:\PROGRAM FILES\Rsc\EXEC32\Scripts\Check for email.e
job3= 9:00AM ; 0:00 ; C:\PROGRAM FILES\Rsc\EXEC32\Scripts\Refresh My Page.e

One timer is used for the cron jobs. Once a timer fires, it runs the script, and evaluates the cron file for the next job according to these rules.

  1. Upon exec32 startup, if an interval job is found, it is set to run in four minutes.
  2. After it has run, the start_time is reset to now plus the interval.
  3. The file is reevaluated, and the next non-interval job that is less than or closest to now is set as the next job.
  4. Interval jobs at the top of the list have priority over the timer.

Back...