beautypg.com

Timed cron entry, Timed cron entry -2 – Gasboy CFN III Manager Manual V3.6 User Manual

Page 228

background image

Automatic Cron Commands

What Conditions can be Specified for Cron

Page 21-2 MDE-4871 CFN III Manager’s Manual for Windows® XP Embedded - Version 3.6 · August 2010

A restart entry begins with an exclamation mark (!). It will be executed whenever the system
suffers a general failure (crash). A restart entry could execute a command file that saves the
diagnostics and history reports in a disk file for later examination, then restarts the system
automatically. Cron must not have more than one restart entry. Shows in When column as
RESTART.

A reboot entry begins with caret (^). It will be executed whenever the system is rebooted. It
works when the REBOOT command is executed and when the system is rebooted after a
power failure. Like the restart entry, it can be used to execute a command file that saves
diagnostic and status information in a disk file. Cron must not have more than one reboot
entry. Shows in When column of P CR as REBOOT.

A transaction-memory-full entry begins with a percent sign (%). It will be executed at the
same time as the message on transaction memory, Transfile XX% full, is logged. (The XX% at
which the Transfile full message is logged is set in SYS_PAR).

Transaction memory shows up as Memory in the When column of PRINT CRON output.

Timed Cron Entry

A cron entry that begins with an at sign (@) is taken as a timed cron command. You can
specify the day of the week, month, date, year, hour, and minute that you want the command
executed. Days of the week are numbered from 01 starting with Sunday. The hour is specified
in 24-hour time.

You must use leading zeros, if required, so each number is two digits. For example, Sunday is
01, not just 1, and June is 06, not 6.

The format of a timed cron entry is:

@DWMMDDYYHHMM [-]command

• DW is the day of the week as a two digits number (Sunday=01, Monday=02, Tuesday=03,

and so on).

• MM is the month as a two digits number (January=01, February=02, and so on).
• DD is the day of the month as a two digits number.
• YY is the last two digits of the year (97 for 1997).
• HH is the hour as a two digits number, in 24-hour time.
• MM is the minute as a two digits number.
• [-] The optional hyphen (-) before the command name suppresses output to the printer.

This allows the command to execute when someone is logged on to the command
terminal. CRON runs using command processor 33. If console is in command mode,
CRON waits.

• command is the name of the Site Controller command or user command file to execute.

The time field is right justified, which means that it is read by the Site Controller from the
right, not from the left. That is, if you do not care about one or more of the left-most time
intervals, you do not have to specify them.

An ** also indicates that you do not care about that time interval. For example,
@01********00 indicates every hour on Sundays, @1200 indicates at 12:00 noon every day,
and @01**0400 indicates at 4:00 A.M. on the first of every month.

This manual is related to the following products: