Cyclades PC400 installation manual Get information from the board, Syslog, Crond Utility

Models: PC400

1 45
Download 45 pages 58.97 Kb
Page 39
Image 39

Cyclades-PC400

Installation Manual

-i

get information from the board

Syslog

The syslog feature can be turned on, as an option. It runs in background, by default. Its syntax is:

pc400syslog [-d device] [-l facility]

-d device : defines the syslog device (the default is /dev/ttyCM30)

-l <facility> : where <facility> is a number between 0 and 7, indicates the local_level

it sends Syslog messages generated by the PC400 firmware to the Syslogd running on the Linux server. It can also be initialized using the rc.local file described later.

The Crond Utility

A list of Linux shell commands can be saved in a "crontab" file and executed at a specific time. The crontab command provides a user interface to change the crontab file. To use crond, first create the following two files for every process that it will execute:

1.crontab - the file that specifies frequency of execution, name of shell script, etc. should be created using the traditional crontab file format.

2.script shell - a script file with the Linux commands to be executed.

Each line of the crontab file has five time and date fields, followed by a user name if it is the system crontab file, followed by a command.

minute hour date month day-of-week [user] command

Commands are executed when the minute, hour and month fields match the current time and when at least one of the two day fields (day of month or day of week) match the current time. An * represents the entire possible range of values (e.g. every day or every month).

Next, create a line in the file /etc/crontab_files for each process to be run.

Each line must contain the three items:

Appendix A - Linux

39

Page 39
Image 39
Cyclades PC400 Get information from the board, Syslog, Crond Utility, Minute hour date month day-of-week user command