Available in

(1) (1)/fi (1)/fr (1)/ja (1)/ko (1)/pl (1)/tr (1p) (1posix) (5) (5)/fr (5)/ja (5)/ko (5)/pl (5)/tr

TOC

CRONTAB(5)                                                          CRONTAB(5)



crontab - cron

crontab
       cron(8)
           ,   , ``    '' .
          crontab    , crontab      .
        uucp, news    crontab  , su(1)
         ,
          .

        , ,   ,   `#'
         .
        cron         .  ,        .

       cron        , cron    .
           .

           name = value

       `='     .  name

       value
         .  value
           ( ,  , ) .


       cron(8)
          .  SHELL  /bin/sh, LOGNAME HOME
        /etc/passwd   crontab    .  HOME  SHELL  crontab     , LOGNAME    .

       (: LOGNAME  BSD  USER   .
        USER    .)

       LOGNAME, HOME, SHELL  , cron(8)
        , crontab MAILTO   , .  MAILTO  (,  ),
          ,     , MAILTO    (MAILTO=""),
         .  ,     ,  crontab
         .
            /usr/lib/sendmail , /bin/mail    , /bin/mail  aliasing(     )
        , uucp      .  ( .. ^^)

       cron   V7  .
            , ,  ( crontab  ), ,   .

        ,  ,  .(  ) cron(8)
            .
            .


              -----          -----------------
                             0-59
                             0-23
                             0-31
                             0-12 ( ,    )
                             0-7 (0  7:  ,   )

         `*'    ,
          . ( ,   `*'   `' )

           .
        (`-')  , 8, 9, 10, 11 .

            ,   (`,') .  : ``1,2,5,9'', ``0-4,8-12''.

          ,      ,
           ``/<>''   .
        ,   ``0-23/2''  ,
         ,  ``0,2,4,6,8,10,12,14,16,18,20,22''
        .  ``  '' , ``*/2''    .

       ``'' ``''    ,
              .

        ( )   .
              `%'  , ,       .  (`%'       ,
              .)
         , (\)  .

       :
           ,
        ,
       ``30 4 1,15 * 5''
         1, 15 4 30 ,
         .

crontab

       #
       SHELL=/bin/sh
       #
       MAILTO=paul
       #
       #  00 05
       5 0 * * *       $HOME/bin/daily.job >> $HOME/tmp/out 2>&1
       #  1  2 15
       15 14 1 * *     $HOME/bin/monthly
       #      10.
       0 22 * * 1-5   mail -s "It's 10pm" joe%Joe,%%Where are your kids?%
       23 0-23/2 * * * echo "  0, 2, 4, ...  23 ."
       5 4 * * sun     echo "    4 5 ."

cron(8), crontab(1)

  , 0, 7  ,  .
        BSD, ATT    .

          , "1-3,7-9" ATT, BSD cron    - "1-3",  "7,8,9"  .

          , "1-9/2" = "1,3,5,7,9".

            .

          .  BSD, ATT /etc/rc
        .

          (BSD   ),
              (SysV   ),
              (SysV   ).

Paul Vixie <paul [AT] vix.com>

4th Berkeley Distribution       24 January 1994                     CRONTAB(5)

COMMENTS

1
I think this man page needs updating.  It doesn't mention MAILTO can be used with multiple recipients by separating the email addresses with commas - as described in the debian & freebsd man pages.

- Chris
2009-10-16 11:58:14
Add your comment here. Whitespace and linebreaks are preserved. URLs are linked automatically.
CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.