The Cron table ability of !AntUtils allows specified commands to be
automatically carried out at various times of the day, assuming !AntUtils is
loaded.

Currently recognised commands are:-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.xxx		- define label xxx (see 'goto' below)

Beep		- Perform a system beep (VDU 7) - mainly for testing purposes!

Browser xx      - Force a web browser change to browser xx
                  (same as menu option)

ChangeISP xx	- Change ISP to xx, where xx is an ISP name from the
                  Plugins.!ChangeISP menu.

Debatch	xx	- Issue a Pluto (if loaded) debatch command (where xx="mail",
                  "news" or "both")

Email xx yy	- Email user xx message template yy (see below)

Fetch xx	- Issue a fetch command (where xx="mail", "news" or "both")

goto xxx	- goto label xxx where the label is defined as above.

if cmd stmt     - check cmd and if TRUE then execute cron command stmt
                  (see below)

ifnot cmd stmt  - check cmd and if FALSE then execute cron command stmt
                  (see below)

InetLoad	- Load !InetSuite (requires !InetSuite to have been 'seen' by
                  the filer.

InetQuit	- Quit the !InetSuite (requires InetLoad to have been
                  previously given)

InetDial	- Connect to your Internet provider

InetDiss	- Disconnect and hangup (if previously connected)

InetFAH		- Issue a 'Fetch all + Hangup' command to the InetSuite.

LoadApp xx      - Load application xx as a wimp task.

Oscli xx	- Pass parameter xx to the CLI.

Plugin xx       - Load and run AntUtils plugin xx.

Quit [xx]	- Quit named task xx (optional). If no named task is given,
                  AntUtils will quit itself - WARNING!! This should be the
                  last command as, obviously, !AntUtils will quit and thus
                  ignore any further commands.

Reset		- Reset the machine (use with care!)

Shutdown	- Force a Shutdown of the machine (use with care!)

Swap		- Swap cron files "Cron" and "Cron2" around. Take note that
                  !AntUtils will need reloading in order to reset the cron
                  table pointer. This is handy when used in conjunction with
                  Reset and !AntUtils in the boot sequence to perhaps do two
                  automatic mail fetches per day.

URL xx		- Launch URL xx (if Fresco is loaded).


Additional conditions for IF/IFNOT commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if/ifnot can be followed by an additional condition. If the condition is met
(IF) then the following cron command will be executed. Alternatively if you
use the IFNOT command then the statement will executed if the condition is
NOT TRUE.

The following additional conditions are available:-

if mon xxx	- Execute command xxx if today's day is a Monday. Similarly,
                  you can use other days of the week; mon, tue, wed, thu,
                  fri, sat or sun.
                  
ifnot mon xxx	- As above, but execute command if today is NOT Monday (other
                  days are valid as above)

if day=20 xxx	- Execute command xxx if today's day of the month matches the
                  numeric value.

ifnot day=20 xxx - follows same rules as above etc.

if date=0109 xxx - Execute command xxx if today's day=01 and month=09
                   (N.B. UK dates)

ifnot date=0109 xxx - follows same rules as above etc.

if year=2000 xxx - as for day, but applied to years (also ifnot etc).

if task Fresco xxx - If task Fresco (or other named task) is loaded then
                     execute command xxx. (ifnot version executes command if
                     task is not loaded)
                     
If a particular condition is not met, then AntUtils will simply skip over it
and continue with the next event in the cron file. ie. AntUtils will NOT wait
until a specific event is met before continuing.
eg. for a cron of

1900	if mon beep
1901	InetQuit

At 7pm it will check to see if the current day is a Monday. If it is not, the
command will be skipped and InetQuit will be executed as normal at 7.01pm

Summary of if/ifnot commands;
	mon,tue,wed,thu,fri,sat,sun	- days of the week
	jan,feb,mar etc			- three letter names of the months
	day=dd				- day equals two digit day of month
	date=ddmm			- date equals dd day of month mm
	                                  (ensure each is two digits long,
	                                  being four digits in total)
	year=yyyy			- current year equals four digit
	                                  value.
	task <taskname>			- checks to see if task <taskname> is
	                                  running


Automatic Email Sending
~~~~~~~~~~~~~~~~~~~~~~~
By using the 'Email' command you can send automated emails to specific users. 
The syntax is: Email xx yy
where xx is the email address of the recipient and yy is the email template
file.
For example,

1800	Email paul@vigay.com autoack

Would email me a copy of the 'ack' template at 6pm. Template files are stored
inside the !AntUtils.Files.Emails directory and are plain text files which
will be emailed to the recipient. They have a couple of custom commands of
their own;

#date	will insert the current date
#time	will insert the current time
#email  will insert your email address (configured via !Advanced)
#name   will insert your name (configured via !Advanced)
#user   will insert the recipients email address
#subj   will insert the template name (subject)
#id     will insert a message ID for the current message.
#ver    will insert the version number of AntUtils.
#zone   will insert the time zone of your machine.

A number of preset templates are supplied such as a plain auto-ack, a
birthday greeting and a Christmas greeting.


Notes
~~~~~
Make sure that all times are in consecutive order!

If you would like any help, tips or example script files please feel free to
contact me.

1997-2002 P.Vigay
