This repository has been archived on 2024-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
scron/scron.1

46 lines
934 B
Groff

.Dd Feb 6, 2015
.Dt SCRON 1
.Os
.Sh NAME
.Nm scron
.Nd clock daemon
.Sh SYNOPSIS
.Nm
.Op Fl f Ar file
.Op Fl n
.Sh DESCRIPTION
.Nm
schedules commands to be run at specified dates and times.
.Pp
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl f Ar file
Use the specified
.Ar file
instead of the default
.Ar /etc/crontab .
.It Fl n
Do not daemonize.
.El
.Sh CONFIGURATION
Configuration is done by editing the crontab file.
Columns:
minute, hour, day of month, month, day of week, command
Separator:
Any number of tabs or spaces.
Value:
* (wildcard), 30 (number), */N (repeat), 1-5 (range), or 1,3,6 (list)
.Sh EXAMPLE
Example of crontab file:
# Run updatedb at 6:00 every day
0 6 * * * updatedb
# Run at 5:30 every business day. Log output to /var/log/backup.log.
30 5 * * 1-5 syncbackup &>> /var/log/backup.log
# Run as user postmaster at 5:00 every third day of month.
0 5 */3 * * su -c 'mail -s "Hello world" a@b.com' postmaster