[Tux Gif]
 Linux System Administration

CUPS and CRON


/etc/crontab

Lists can also be combined with each other, or with steps:

* 12 1-15,17,20-25 * * command

Will run cmd every midday between the 1st and the 15th as well as the 20th  and 25th (inclusive) and also on the 17th of every month.

* 12 10-16/2 * * backup.sh


is the same as:

* 12 10,12,14,16 * * backup.sh


When using the names of weekdays or months, it isn't case sensitive, but only the first three letters should be used, e.g. Mon, Sun or Mar, Jul.

Comments are allowed in crontabs, but they must be preceded with a '#', and must be on a line by them self.



Prev                Page 8                Next