
CronD
134 BLACK BOX ® Advanced Console Server
CronD
CronD is a service provided by the BLACK BOX ® Advanced Console Server system that
allows automatic, periodically-run custom-made scripts. It replaces the need for the same
commands to be run manually.
Parameters Involved and Passed Values
The following parameters are created in the /etc/crontab_files file:
Example:
The name of the shell script with the commands to be executed is /etc/teste_cron.sh.
The name of the crontab file is /etc/crontab_tst and it contains one line:
0-59****/etc/test_cron.sh
Insert the follow line in the /etc/crontab_files:
active root /etc/crontab_tst
Result: CronD will execute the shell script teste_cron.sh with root privileges each minute.
status Active or inactive. If this item is not active, the script will not be executed.
user The process will be run with the privileges of this user, who must be a valid
local user.
source Pathname of the crontab file that specifies frequency of execution, the name of
shell script, etc. It should be set using the traditional crontab file format.
Note: In /etc/crontab, you can only have one active entry per user. For
instance, from the example above, you cannot add another active entry for root
because it already has an entry. If you want to add more scripts, you can just
add them to the source file (/etc/crontab_tst).
Komentarze do niniejszej Instrukcji