User Tools

Site Tools


ubuntu:cron

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:cron [2019/12/12 23:53] peterubuntu:cron [2021/07/05 21:53] (current) – [Cron] peter
Line 12: Line 12:
  
 The jobs inside the crontab file are known as cron jobs, and consist of standard Linux commands.  They also contain the time-period when cron needs to execute them. The jobs inside the crontab file are known as cron jobs, and consist of standard Linux commands.  They also contain the time-period when cron needs to execute them.
 +
 +<code bash>
 + ┌───────────── minute (0 - 59)
 + │ ┌───────────── hour (0 - 23)
 + │ │ ┌───────────── day of the month (1 - 31)
 + │ │ │ ┌───────────── month (1 - 12)
 + │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday;
 + │ │ │ │ │                                   7 is also Sunday on some systems)
 + │ │ │ │ │
 + │ │ │ │ │
 + * * * * * <command to execute>
 +</code>
  
 {{:ubuntu:crontab-structure.jpg?800|}} {{:ubuntu:crontab-structure.jpg?800|}}
Line 26: Line 38:
  
 [[Ubuntu:Cron:List Crontab|List Crontab]] [[Ubuntu:Cron:List Crontab|List Crontab]]
 +
 +[[Ubuntu:Cron:Send Cron Results to Specified Email Account|Send Cron Results to Specified Email Account]]
  
 [[Ubuntu:Cron:Set crontab editor to vim|Set crontab editor to vim]] [[Ubuntu:Cron:Set crontab editor to vim|Set crontab editor to vim]]
Line 58: Line 72:
  
 [[Ubuntu:Cron:Schedule a Cron Job to Run on Specified Months|Schedule a Cron Job to Run on Specified Months]] [[Ubuntu:Cron:Schedule a Cron Job to Run on Specified Months|Schedule a Cron Job to Run on Specified Months]]
 +
 +[[Ubuntu:Cron:Schedule a Cron Job to Run on 15 January at 8 PM|Schedule a Cron Job to Run on 15 January at 8 PM]]
 +
 +[[Ubuntu:Cron:Schedule a Cron Job to Run in Every Second Month|Schedule a Cron Job to Run in Every Second Month]]
 +
 +[[Ubuntu:Cron:Schedule a Cron Job to Run on the First Sunday of Each Month|Schedule a Cron Job to Run on the First Sunday of Each Month]]
 +
 +[[Ubuntu:Cron:Schedule a Cron Job to Run on Every Three Hours|Schedule a Cron Job to Run on Every Three Hours]]
 +
 +[[Ubuntu:Cron:Schedule a Cron Job to Execute Twice on Every Saturday and Monday|Schedule a Cron Job to Execute Twice on Every Saturday and Monday]]
 +
 +[[Ubuntu:Cron:Schedule a Cron Job to Run on Every 30 Seconds|Schedule a Cron Job to Run on Every 30 Seconds]]
 +
 +[[Ubuntu:Cron:Schedule Multiple Jobs in a Single Crontab Entry|Schedule Multiple Jobs in a Single Crontab Entry]]
 +
 +[[Ubuntu:Cron:Schedule Yearly Cron Jobs|Schedule Yearly Cron Jobs]]
 +
 +[[Ubuntu:Cron:Schedule Monthly Cron Jobs|Schedule Monthly Cron Jobs]]
 +
 +[[Ubuntu:Cron:Schedule Weekly Cron Jobs|Schedule Weekly Cron Jobs]]
 +
 +[[Ubuntu:Cron:Schedule Daily Cron Jobs|Schedule Daily Cron Jobs]]
 +
 +[[Ubuntu:Cron:Schedule Hourly Cron Jobs|Schedule Hourly Cron Jobs]]
 +
 +[[Ubuntu:Cron:Schedule a Cron Job on System Reboot|Schedule a Cron Job on System Reboot]]
 +
  
  
  
ubuntu/cron.1576194830.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki