AdministrativeTasks

Each line in a .crontab file must consist of six positional fields, separated by spaces or tabs, and formatted as follows:

minutes hours day-of-month month day-of-week command

Any of the first five fields can be a list of values separated by commas. A value is either a number, or a pair of numbers that are separated by a hyphen. This value indicates that the job is performed for all the times in the specified range. If a field is an asterisk character (*), the job is performed for all possible values of the field.

Field

Description

 

 

minutes

Minutes field. Values range from 0

 

through 59.

 

 

hours

Hours field. Values range from 0 through

 

23.

 

 

day-of-month

Day of the month. Values range from 1

 

through 31.

 

 

month

Month of the year. Values range from 1

 

through 12.

 

 

day-of-week

Day of the week. Values range from 0

 

through 6. Sunday is day 0. For backward

 

compatibility with older systems, Sunday

 

can also be specified as day 7.

 

 

command

Command to be run. A percent character

 

in this field is translated to a NEWLINE

 

character. Only the first line (up to a per

 

cent or end of line) of the command field

 

is executed by the shell. The other lines

 

are made available to the command as

 

standard input.

 

 

Operaitng Tasks

600716 Rev A

Operating Tasks

2-37

Page 113
Image 113
ADIC FileServ Version 4.0 600716 Rev A manual Minutes hours day-of-month month day-of-week command