Differences between revisions 2 and 3
Revision 2 as of 2009-03-08 13:05:30
Size: 1578
Editor: PieterSmit
Comment:
Revision 3 as of 2009-05-05 21:15:59
Size: 1599
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 45: Line 45:
----
CategoryLinux

CRON

  • CRON job is script/program that is scheduled to run at a specific time
  • There is central server cronjobs, and per user cronjobs.

    edit cron job with  $crontab -e 

  • from $man 5 crontab
       cron(8) examines cron entries once every minute.  The
           time and date fields are:
    
                  field          allowed values
                  -----          --------------
                  minute         0-59
                  hour           0-23
                  day of month   1-31
                  month          1-12 (or names, see below)
                  day of week    0-7 (0 or 7 is Sun, or use names)
    
           A field may be an asterisk (*), which always stands for ``first-last''.
  • Short hand + special reboot
    • Allows normal users to schedule non root jobs to run after reboot when cron starts.
         Instead of the first five fields, one  of  eight  special  strings  may
           appear:
    
                  string         meaning
                  ------         -------
                  @reboot        Run once, at startup.
                  @yearly        Run once a year, "0 0 1 1 *".
                  @annually      (same as @yearly)
                  @monthly       Run once a month, "0 0 1 * *".
                  @weekly        Run once a week, "0 0 * * 0".
                  @daily         Run once a day, "0 0 * * *".
                  @midnight      (same as @daily)
                  @hourly        Run once an hour, "0 * * * *".

...


CategoryLinux

linux/cron (last edited 2009-05-05 21:15:59 by PieterSmit)