{"id":16,"date":"2005-12-12T07:12:00","date_gmt":"2005-12-12T07:12:00","guid":{"rendered":"http:\/\/10.168.29.5\/blog\/?p=16"},"modified":"2010-02-15T07:00:28","modified_gmt":"2010-02-15T07:00:28","slug":"cron-for-web-2-0","status":"publish","type":"post","link":"https:\/\/davidsterry.com\/blog\/2005\/12\/cron-for-web-2-0\/","title":{"rendered":"Cron for Web 2.0"},"content":{"rendered":"<p>For <a href=\"#\">TST<\/a>(retired in 2008), I run several processes each hour of the day and I use cron to do it. It&#8217;s quite simple when you have linux box running 24\/7. All you have to do is type &#8220;crontab -e&#8221; and enter a line like &#8220;01 * * * * \/script_folder\/script_to_run&#8221; then &#8220;:wq&#8221; to save the file.<\/p>\n<p>I discovered yesterday that my internet connection and local power grid are not as reliable as I would like. Consequently, I&#8217;d love it if my web host could run cron jobs for me. They don&#8217;t. Many web hosts offer cron jobs, but if it&#8217;s not part of your current hosting plan, and you don&#8217;t really want to upgrade or switch hosting providers, you&#8217;re at a bit of a loss.<\/p>\n<p>So I&#8217;ve got an idea to create a web-based cron service to grab the url of your choice on the schedule you decide. That way you can make a little php or perl script, put it in an obscure or password-protected folder on your server and have it run when you want.<\/p>\n<p>Now that&#8217;s what I would call a web service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For TST(retired in 2008), I run several processes each hour of the day and I use cron to do it. It&#8217;s quite simple when you have linux box running 24\/7. All you have to do is type &#8220;crontab -e&#8221; and enter a line like &#8220;01 * * * * \/script_folder\/script_to_run&#8221; then &#8220;:wq&#8221; to save the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-default"],"_links":{"self":[{"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":1,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions\/183"}],"wp:attachment":[{"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidsterry.com\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}