home *** CD-ROM | disk | FTP | other *** search
- Cron - Timed execution of commands
- ----------------------------------
-
- Cron executes commands at specified dates and times. Regularly scheduled
- commands can be specified according to instructions found in a 'CronList' file.
- You can have several CronList files, although only one can be active at any
- time.
- When the module is loaded (typically in the boot sequence), Cron will wait for
- the desktop to start up. If the desktop is already running, you will need to
- say *Desktop to get Cron started.
- When started, Cron will be displaying the current time in an icon on the
- iconbar.
- At some convenient point (usually also in the boot file) you should issue a
- *CronList <filename> command.
- Cron will then know where the CronList is/should be placed, and the scheduling
- system will become active. The file does not need to exist, but it must be a
- possible filename on a read/write device.
-
- Wimp interface
- --------------
-
- Choosing 'List…' from the menu (or clicking Adjust on the icon) will display
- a list of the scheduled events.
- Double clicking on one of these will extract it from the list, and enable you
- to edit it. An event will not be triggered while it is being edited.
- Clicking 'Set' will put the event back into the list, ready to be triggered.
- Clicking 'Delete' will just close the window. The event is hereby removed.
- The editing of an event is described below.
-
- Choosing 'Set…'from the menu (or clicking Select on the icon) will enable you
- to define a new event. Clicking 'Set' will register it, 'Delete' will discard
- it.
-
- Editing events are done by using the various buttons in the edit/define window.
- The time displayed in an icon can be adjusted with the buttons below it.
- Select increases and Adjust decreases by the amount shown on the button.
-
- The option buttons toggles some aspects on and off. Sometimes the buttons will
- fail to react on a click; this is because it would result in an illegal event.
-
- The 'Action' can be set to any *command.
-
- The 4 dates work like this:
-
- 'First shot' defines the first time the event is triggered. Nothing will happen
- before this moment.
- 'Expires' can be set to a moment, where it is too late for the event to be
- useful. Events are only triggered while Cron is running of course, so it is
- possible that an event may be run much later that the 'First shot' dictated.
- Setting an appropriate expiry time will also avoid several repeating events to
- be executed if the computer have been off for a while (or if the clock is set
- forward).
- 'Repeat' can be set to cause the event to be repeated at the specified time.
- The repeat time will then be set forward by the same amount of time. If, for
- example, you set repeat a day after the first shot, the event will be triggered
- daily. Any pending events will be executed retroactively, so if you have an
- event that repeats after an hour, you will get 24 events in a row if you run
- Cron after a day of inactivity. This is why 'Expires' can be useful. (You could
- set it to expire after 59 minutes, then you would only get 1 event).
- 'Delete' can be set to a time where the event should be automatically removed
- from the list. It will only work in combination with 'Repeat'. If 'Repeat' is
- off, the event will always be deleted immediately after being executed.
-
- System variables
- ----------------
-
- Cron will use these variables if they are set:
-
- Cron$TimeFormat Controls how dates appear in the windows.
- Cron$IconTime Controls how the time is displayed in the iconbar icon.
-
- Both of these should be set to a standard timeformat string.
- The Cron$IconTime format will also control how often Cron checks the list to
- see if any events needs to be executed.
-
- That's it
- ---------
-
- You might want to know what happens if some of the times coincide. They have
- different priorities.
- 'Delete' has the highest priority, so if you are past the delete time, the
- event will be deleted, no matter what.
- Second priority is 'Expire'. If the first shot is at the same time at it
- expires, it will expire, and the event will not be run.
- 'First shot' and 'Repeat' have the same (lowest) priority, they can never
- coincide.
-
- Thomas Olsson, 21 Feb 1994
-