User Tools

Site Tools


computing:cronsyntax

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
computing:cronsyntax [2018/12/03 18:29] – created oemb1905computing:cronsyntax [2019/01/14 02:20] oemb1905
Line 26: Line 26:
 Here is a helpful text-based explanation from systutorials.com: Here is a helpful text-based explanation from systutorials.com:
  
-.---------------- minute (0-59) +{{:computing:cron.png?direct|}}
- .------------- hour (0-23) +
-|  |  .---------- day of month (1-31) +
-|  |  |  .------- month (1-12) OR jan,feb,mar,apr ... +
-|  |  |  |  .---- day of week (0-6) (Sunday=0 or 7) OR sun,mon,tue ... +
-|  |  |  |  | +
-*  *  *  *  *  command to be executed+
  
 You got it, right?   You got it, right?  
 +
 +Problem solving?  Append the output of the command you run with cron to a log as follows:
 +
 +    0 0 1 * * /your/command > /home/username/Desktop/command.log
 +    
 +Need more information, visit this Stack Exchange post:
 +
 +[[https://serverfault.com/questions/449651/why-is-my-crontab-not-working-and-how-can-i-troubleshoot-it|Cron]]
 +
 +This tutorial is a designated "Invariant Section" of the "Technotronic" section of Haack's Wiki as described on the [[https://jonathanhaack.com/dokuwiki/doku.php?id=start|Start Page]].
  
  --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2018/12/03 11:23//  --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2018/12/03 11:23//