Service manual
96 Cyclades ACS 5000 Advanced Console Server Command Reference Guide
• Status - Active or inactive. The script does not execute if inactive.
• User - The process runs with the privileges of a valid local user.
• Source - Pathname of the crontab file that specifies frequency of execution and the name of
shell script. It should be set using the traditional crontab file format.
Example: active root /etc/tst_cron.src
NOTE: In /etc/crontab_files, you may only have one active entry per user. For instance, from the earlier example,
you cannot add another active entry for “root” because it already has an entry. If you want to add more scripts,
you may just add them to the source file, for example: (/etc/tst_cron.src).
The /etc/crontab_files file may point to any desired file that calls the scripts to be run. The console
server has example file for it (/etc/tst_cron.src). The file that is pointed out in the /etc/crontab_files
file must follow the following structure.
PATH=/usr/bin:/bin
SHELL=/bin/sh
HOME=/
0-59 * * * * /etc/tst_cron.sh
This file is called /etc/tst_cron.src. It can have any name, but it follows structure showed
previously. The fourth line of the example file follows this structure: minutes, hours, month day,
month, week day and command. It is possible to specify different tasks to run on different dates and
times. Each command must be on separated lines. See Crontab syntax.
Crontab syntax
A crontab task consists of four date/time fields and a command field. Every minute cron checks all
crontabs for a match between the current date/time and their tasks. If there's a match, the command
is executed. The system crontab has an additional field User that tells cron with which user id the
command should be executed.
The fields are:
• Min - minute of execution, 0-59
• Hour - hour of execution, 0-23
• Mday - day of month of execution, 1-31
• Month - month of execution, 1-12 (or names)
• Wday - day of week of execution, 0-7 (0 or 7 is sunday, or names)
• Command - Anything that may be launched from the command line