scron

simple cron daemon
git clone git://git.2f30.org/scron.git
Log | Files | Refs | README | LICENSE

README (880B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
scron
=====
Simple cron daemon.

Features
--------
* Schedule commands to be run at specified dates and times.
* Single daemon and configiguration file.
* Log job output: 'command &>> /var/log/cron.log'.
* Run job as different user: 'su -c 'command' user'.
* Log to stdout or syslog.
* No mail support.

Configuration
-------------
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)

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