C O N T R O L C E N T R E
157
157
157
157
#"
Program performance parameters must be separated by colons
.
–u=username
is the user name under which the
prgname
program
will be started
;
-e=hour:min
is the
prgname
program performance time. When the
time is over, the program shuts down.
Let's review the following example for training purposes:
????
Example
:
Right after the Control Centre is started, you want to
load the Scanner in order to scan the location defined in the
file
task.txt
. The Scanner performance results must be
logged into
the system log. The task time must not exceed 15 minute
s.
%"
Solution:
To do this, enter the following strings in the command line:
./kavucc -cp="./kavscanner –a:–@=task.txt:–WS -u=root
-e=00:15"
You can schedule more than one task to be performed once, daily, weekly,
monthly or every time the Control Centre is started. This can be done with
the instruction
–ca*
. The character
*
may be substituted for the following
letters:
d
,
w
,
m
,
o
or
l.
These are the letters defining how often the task must
be performed. Therefore, the complete task-scheduling instruction will look
like:
•
–cad="task_parameters"
– for a task to be performed daily;
•
–caw="task_parameters"
– for a task to be performed weekly;
•
–cam="task_parameters"
– for a task to be performed monthly;
•
–cao="task_parameters"
– for a task to be performed once;
•
–cal="task_parameters"
– for a task to be performed every time the
Control Centre is started.
$"
To schedule a task to be performed daily
,
enter the following strings in the command line:
./kavucc -cad="prgname -a:arg[:arg1[...]] -u=username
-st=hour:min -fs=day.month.year -ls=day.month.year
-re=delay -e=hour:min"