CRONTAB(5) CRONTAB(5)
crontab
cron(8)
crontab
crontab
crontab UUCP News crontab cron su(1)
# cron
crontab
cron :
name = value
(=) value
() name
value
( )
value
PATH = $HOME/bin:$PATH
cron(8)
SHELL /bin/sh LOGNAME HOME /etc/passwd crontab PATH "/usr/bin:/bin"
HOME SHELLPATH crontab LOGNAME
(LOGNAME BSD USER ...
USER ) LOGNAME, HOME, SHELL cron(8) crontab MAILTO MAILTO ()
MAILTO (MAILTO="")
MAILTO crontab
Debian GNU/Linux cron pam_env
/etc/security/pam_env.conf
PAM crontab
"/usr/bin:/bin" PATH
crontab
cron "Content-Type:"
"text/plain" "charset=" crond(8)
LC_*
LC_* ( locale(7) ) crontab
CONTENT_TYPE CONTENT_TRANSFER_ENCODING
cron
cron V7
5
('\n')
crontab (/etc/crontab)
2 ()
()
cron(8)
cron(8)
cron
---------- --------------
0-59
0-23
1-31
1-12 ()
0-7 (0 7 )
(*)
``first-last''
8-11 8, 9, 10, 11
() ``1,2,5,9'', ``0-4,8-12''
``/<number>''
``0-23/2''
2 (V7 ``0,2,4,6,8,10,12,14,16,18,20,22'') 2 ``*/2''
3 ()
6 ()
( % ) /bin/sh ( crontab SHELL )
(%)
(\)
%
"\" crontab
: 2 --
(* )
``30 4 1,15 * 5''
1 15
4:30
5 8 1 :
------ ----
@reboot
@yearly ("0 0 1 1 *" )
@annually (@yearly )
@monthly ("0 0 1 * *" )
@weekly ("0 0 * * 0" )
@daily ("0 0 * * *" )
@midnight (@daily )
@hourly ("0 * * * *" )
# /bin/sh /bin/bash
SHELL=/bin/bash
# ( crontab ) `paul'
MAILTO=paul
#
# 5
5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1
# 2:15pm -- paul
15 14 1 * * $HOME/bin/monthly
# 10
0 22 * * 1-5 mail -s "10" joe%%%?%
23 0-23/2 * * * echo " 0,2,4.. 23 "
5 4 * * sun echo " 4 5 "
CRON /etc/crontab
# /etc/crontab: crontab
# crontab
# `crontab'
# crontab
#
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
42 6 * * * root run-parts --report /etc/cron.daily
47 6 * * 7 root run-parts --report /etc/cron.weekly
52 6 1 * * root run-parts --report /etc/cron.monthly
#
# anacron /etc/cron.d
#
0 7
BSD ATT
ATT BSD cron "1-3,7-9" -- "1-3" "7,8,9"
"1-9/2" "1,3,5,7,9"
crontab BSD ATT /etc/rc
crontab (BSD )
crontab (SysV )
(SysV )
5 `@'
4th Berkeley Distribution 24 January 1994 CRONTAB(5)
- Chris