crontab SMAT Database cycling
crontab
SMAT Database cycling is a method of
cycling based on time. Cycling can be automatic and regular.
A hcismatcycle.pl
perl
script is located in $HCIROOT/bin. This can be invoked by a crontab
task to cycle the smatdb base on time. You can make a
crontab
according to specific requirements. Instructions
are provided on how to create and use a crontab
script on
UNIX and Windows.
The script contains eight arguments. Five of these are employed in SMAT Database cycling.
crontab [-s sitename] [-p processname] [-t threadname] [-b in|out] [-r HCIROOT]
The crontab
script has these arguments for
cycling:
-s [siteName]
is the site name.-p [processName]
is the process name.-t [threadName]
is the thread name.-b in|out
is inbound or outbound.[-r HCIROOT]
is the absolute path of a specified HCIROOT.
Only regular tasks about how to create crontab
tasks are listed in these topics. Occasional timed tasks, such as AT
, are not necessary.
For example, to invoke the perl
script, you
can write a new hcismatdbcycle.bat (Windows) or hcismatdbcycle.sh (UNIX).
After this, you can create one crontab
task,
and organize all cycling tasks within the bat or
shell file.
Specific information is available for UNIX and Windows: