{"id":79,"date":"2021-03-02T21:32:54","date_gmt":"2021-03-02T21:32:54","guid":{"rendered":"https:\/\/www.jibsheet.net\/linux\/?p=79"},"modified":"2021-03-02T21:32:54","modified_gmt":"2021-03-02T21:32:54","slug":"crontab-tips-and-reference","status":"publish","type":"post","link":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/","title":{"rendered":"Crontab &#8211; tips and reference"},"content":{"rendered":"<h3>Crontab tips<\/h3>\n<p>edit &#8211; &#8220;contrab -e&#8221;<\/p>\n<p>to list &#8220;crontab -l&#8221;<\/p>\n<p>Link to Manpage online &#8211;\u00a0<a href=\"https:\/\/man7.org\/linux\/man-pages\/man5\/crontab.5.html\">https:\/\/man7.org\/linux\/man-pages\/man5\/crontab.5.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<pre>\r\n\/\/ shamelessly stolen from stackoverflow\r\n\r\ncrontab does not understand \"intervals\", it only understands \"schedule\"\r\n\r\nvalid hours: 0-23 -- valid minutes: 0-59\r\n\r\nexample #1\r\n\r\n30 * * * * your_command\r\n\r\nthis means \"run when the minute of each hour is 30\" (would run at: 1:30, 2:30, 3:30, etc)\r\n\r\nexample #2\r\n\r\n*\/30 * * * * your_command\r\n\r\nthis means \"run when the minute of each hour is evenly divisible by 30\" (would run at: 1:30, 2:00, 2:30, 3:00, etc)\r\n\r\nexample #3\r\n\r\n0,30 * * * * your_command\r\n\r\nthis means \"run when the minute of each hour is 0 or 30\" (would run at: 1:30, 2:00, 2:30, 3:00, etc)\r\n\r\nit's another way to accomplish the same results as example #2\r\n\r\nexample #4\r\n\r\n19 * * * * your_command\r\n\r\nthis means \"run when the minute of each hour is 19\" (would run at: 1:19, 2:19, 3:19, etc)\r\n\r\nexample #5\r\n\r\n*\/19 * * * * your_command\r\n\r\nthis means \"run when the minute of each hour is evenly divisible by 19\" (would run at: 1:19, 1:38, 1:57, 2:19, 2:38, 2:57 etc)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Crontab tips edit &#8211; &#8220;contrab -e&#8221; to list &#8220;crontab -l&#8221; Link to Manpage online &#8211;\u00a0https:\/\/man7.org\/linux\/man-pages\/man5\/crontab.5.html &nbsp; \/\/ shamelessly stolen from stackoverflow crontab does not understand &#8220;intervals&#8221;, it only understands &#8220;schedule&#8221; valid hours: 0-23 &#8212; valid minutes: 0-59 example #1 30 * * * * your_command this means &#8220;run when the minute of each hour is 30&#8221; (would run at: 1:30, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Crontab - tips and reference - Jon Allen&#039;s Linux Stuff<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Crontab - tips and reference - Jon Allen&#039;s Linux Stuff\" \/>\n<meta property=\"og:description\" content=\"Crontab tips edit &#8211; &#8220;contrab -e&#8221; to list &#8220;crontab -l&#8221; Link to Manpage online &#8211;\u00a0https:\/\/man7.org\/linux\/man-pages\/man5\/crontab.5.html &nbsp; \/\/ shamelessly stolen from stackoverflow crontab does not understand &quot;intervals&quot;, it only understands &quot;schedule&quot; valid hours: 0-23 -- valid minutes: 0-59 example #1 30 * * * * your_command this means &quot;run when the minute of each hour is 30&quot; (would run at: 1:30, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/\" \/>\n<meta property=\"og:site_name\" content=\"Jon Allen&#039;s Linux Stuff\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-02T21:32:54+00:00\" \/>\n<meta name=\"author\" content=\"jonallen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jonallen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/\"},\"author\":{\"name\":\"jonallen\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993\"},\"headline\":\"Crontab &#8211; tips and reference\",\"datePublished\":\"2021-03-02T21:32:54+00:00\",\"dateModified\":\"2021-03-02T21:32:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/\"},\"wordCount\":29,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/\",\"url\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/\",\"name\":\"Crontab - tips and reference - Jon Allen&#039;s Linux Stuff\",\"isPartOf\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#website\"},\"datePublished\":\"2021-03-02T21:32:54+00:00\",\"dateModified\":\"2021-03-02T21:32:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.jibsheet.net\/linux\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Crontab &#8211; tips and reference\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#website\",\"url\":\"https:\/\/www.jibsheet.net\/linux\/\",\"name\":\"Jon Allen's Linux Stuff\",\"description\":\"Howto&#039;s, Observations, and stuff\",\"publisher\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.jibsheet.net\/linux\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993\",\"name\":\"jonallen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7d7c061ce9db8f5e4710555585475882?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7d7c061ce9db8f5e4710555585475882?s=96&d=mm&r=g\",\"caption\":\"jonallen\"},\"logo\":{\"@id\":\"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/www.jibsheet.net\/linux\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Crontab - tips and reference - Jon Allen&#039;s Linux Stuff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/","og_locale":"en_US","og_type":"article","og_title":"Crontab - tips and reference - Jon Allen&#039;s Linux Stuff","og_description":"Crontab tips edit &#8211; &#8220;contrab -e&#8221; to list &#8220;crontab -l&#8221; Link to Manpage online &#8211;\u00a0https:\/\/man7.org\/linux\/man-pages\/man5\/crontab.5.html &nbsp; \/\/ shamelessly stolen from stackoverflow crontab does not understand \"intervals\", it only understands \"schedule\" valid hours: 0-23 -- valid minutes: 0-59 example #1 30 * * * * your_command this means \"run when the minute of each hour is 30\" (would run at: 1:30, [&hellip;]","og_url":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/","og_site_name":"Jon Allen&#039;s Linux Stuff","article_published_time":"2021-03-02T21:32:54+00:00","author":"jonallen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"jonallen","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/#article","isPartOf":{"@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/"},"author":{"name":"jonallen","@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993"},"headline":"Crontab &#8211; tips and reference","datePublished":"2021-03-02T21:32:54+00:00","dateModified":"2021-03-02T21:32:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/"},"wordCount":29,"commentCount":0,"publisher":{"@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993"},"articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/","url":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/","name":"Crontab - tips and reference - Jon Allen&#039;s Linux Stuff","isPartOf":{"@id":"https:\/\/www.jibsheet.net\/linux\/#website"},"datePublished":"2021-03-02T21:32:54+00:00","dateModified":"2021-03-02T21:32:54+00:00","breadcrumb":{"@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.jibsheet.net\/linux\/index.php\/2021\/03\/02\/crontab-tips-and-reference\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.jibsheet.net\/linux\/"},{"@type":"ListItem","position":2,"name":"Crontab &#8211; tips and reference"}]},{"@type":"WebSite","@id":"https:\/\/www.jibsheet.net\/linux\/#website","url":"https:\/\/www.jibsheet.net\/linux\/","name":"Jon Allen's Linux Stuff","description":"Howto&#039;s, Observations, and stuff","publisher":{"@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.jibsheet.net\/linux\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/295a80d0b2aa929b648c4fdddee83993","name":"jonallen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7d7c061ce9db8f5e4710555585475882?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7d7c061ce9db8f5e4710555585475882?s=96&d=mm&r=g","caption":"jonallen"},"logo":{"@id":"https:\/\/www.jibsheet.net\/linux\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.jibsheet.net\/linux"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/posts\/79"}],"collection":[{"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":1,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/posts\/79\/revisions\/80"}],"wp:attachment":[{"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jibsheet.net\/linux\/index.php\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}