Discuss the structure of a crontab file and the guidelines for configuring its fields.
What will be an ideal response?
Each line in a crontab file defines a single cron job. There are six or seven fields in each line, separated by whitespace characters (spaces or tabs). The first five fields define when the cron job should be run. The sixth field in the line specifies the command to be run. If system jobs are defined, the sixth field contains the name of user to be used to run the job, and the seventh field specifies the command to be run.
The following are guidelines for configuring the first five fields:
• If you want a job to run every minute, hour, day, or month, type an asterisk (*) in the corresponding field.
• You can include several entries in a field in a list separated by commas.
• You can specify a range with start and end values separated by a hyphen.
• You can configure time steps with /n (where n represents the size of the step).
• You can specify months and weekdays using the first three letters of their names (for example, MON, TUE, JAN, FEB). The letters are not case sensitive. However, when you use letters, you cannot use ranges or lists.
• Numbers representing the weekdays start at 0 for Sunday and run through the entire week consecutively, with 7 representing Sunday again. For example, 3 is Wednesday and 6 is Saturday.
• If the first field starts with a - character and the job belongs to root, no log entry is written to the /var/log/messages file.
You might also like to view...
The MTU is the
a. fastest speed a network can support b. longest size data block a network can support c. largest interframe gap a network can support d. none of the above
Name two ways (show statements) in which a value can be accessed in a program.
What will be an ideal response?
When creating a chart from data in a worksheet, the data series is surrounded by a(n) ________ border
Fill in the blank(s) with the appropriate word(s).
The ________ displays cells and the formulas in those cells when they are not visible on the screen
Fill in the blank(s) with the appropriate word(s).