{"id":17319,"date":"2019-08-14T12:19:03","date_gmt":"2019-08-14T17:19:03","guid":{"rendered":"http:\/\/bucktownbell.com\/?p=17319"},"modified":"2019-08-14T12:19:03","modified_gmt":"2019-08-14T17:19:03","slug":"why-putting-a-script-in-etccron-hourly-is-not-working","status":"publish","type":"post","link":"http:\/\/bucktownbell.com\/?p=17319","title":{"rendered":"Why putting a script in \/etc\/cron.hourly is not working?"},"content":{"rendered":"<blockquote>\n<div class=\"post-text\">\n<p>As you&#8217;ve probably seen in the comments to your question, the cronjobs in <code>\/etc\/cron.hourly<\/code> (and the other, similar directories) are executed by <code>run-parts<\/code>. <code>run-parts<\/code> is a little picky about filenames. By default it doesn&#8217;t execute files whose filenames contain anything other than (all of those from ASCII)<\/p>\n<ul>\n<li>uppercase letters<\/li>\n<li>lowercase letters<\/li>\n<li>digits<\/li>\n<li>underscores<\/li>\n<li>dashes (&#8220;minus signs&#8221;)<\/li>\n<\/ul>\n<p>So if your script has a filename of for example &#8220;myscript.sh&#8221;,<strong> it just is ignored, because <code>run-parts<\/code> does not like the dot.<\/strong><\/p>\n<\/div>\n<\/blockquote>\n<p>Source: <em><a href=\"https:\/\/askubuntu.com\/questions\/611336\/why-putting-a-script-in-etc-cron-hourly-is-not-working\/611430\">Why putting a script in \/etc\/cron.hourly is not working? &#8211; Ask Ubuntu<\/a><\/em><\/p>\n<p>LOL!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you&#8217;ve probably seen in the comments to your question, the cronjobs in \/etc\/cron.hourly (and the other, similar directories) are executed by run-parts. run-parts is a little picky about filenames. By default it doesn&#8217;t execute files whose filenames contain anything &hellip; <a href=\"http:\/\/bucktownbell.com\/?p=17319\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[1345,366,72,74],"class_list":["post-17319","post","type-post","status-publish","format-standard","hentry","category-operating-systems","tag-bash-script","tag-interesting-features","tag-problem-solved","tag-ubuntu"],"_links":{"self":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/17319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17319"}],"version-history":[{"count":1,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/17319\/revisions"}],"predecessor-version":[{"id":17320,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/17319\/revisions\/17320"}],"wp:attachment":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17319"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}