scron.1 (934B)
1 .Dd Feb 6, 2015 2 .Dt SCRON 1 3 .Os 4 .Sh NAME 5 .Nm scron 6 .Nd clock daemon 7 .Sh SYNOPSIS 8 .Nm 9 .Op Fl f Ar file 10 .Op Fl n 11 .Sh DESCRIPTION 12 .Nm 13 schedules commands to be run at specified dates and times. 14 .Pp 15 .Sh OPTIONS 16 .Bl -tag -width Ds 17 .It Fl f Ar file 18 Use the specified 19 .Ar file 20 instead of the default 21 .Ar /etc/crontab . 22 .It Fl n 23 Do not daemonize. 24 .El 25 .Sh CONFIGURATION 26 Configuration is done by editing the crontab file. 27 28 Columns: 29 minute, hour, day of month, month, day of week, command 30 31 Separator: 32 Any number of tabs or spaces. 33 34 Value: 35 * (wildcard), 30 (number), */N (repeat), 1-5 (range), or 1,3,6 (list) 36 .Sh EXAMPLE 37 Example of crontab file: 38 # Run updatedb at 6:00 every day 39 0 6 * * * updatedb 40 41 # Run at 5:30 every business day. Log output to /var/log/backup.log. 42 30 5 * * 1-5 syncbackup &>> /var/log/backup.log 43 44 # Run as user postmaster at 5:00 every third day of month. 45 0 5 */3 * * su -c 'mail -s "Hello world" a@b.com' postmaster