{"id":1023,"date":"2012-12-06T21:58:43","date_gmt":"2012-12-07T04:58:43","guid":{"rendered":"http:\/\/www.threshold-zero.com\/cblog\/?p=1023"},"modified":"2012-12-06T21:58:43","modified_gmt":"2012-12-07T04:58:43","slug":"cron-tips","status":"publish","type":"post","link":"https:\/\/www.threshold-zero.com\/cblog\/2012\/12\/cron-tips\/","title":{"rendered":"Cron Tips"},"content":{"rendered":"<p>Been wondering this for a while &#8212; how do you make a cron script that will only run once, when your server boots?<\/p>\n<p>Just append &#8220;@reboot&#8221; before the command, instead of the usual time information (at least on Ubuntu Server 12.04):<\/p>\n<ul>\n<li>@reboot \/path\/to\/execuable1<\/li>\n<\/ul>\n<p><a href=\"https:\/\/help.ubuntu.com\/community\/CronHowto\">CronHowto &#8211; Community Ubuntu Documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Been wondering this for a while &#8212; how do you make a cron script that will only run once, when your server boots? Just append &#8220;@reboot&#8221; before the command, instead of the usual time information (at least on Ubuntu Server 12.04): @reboot \/path\/to\/execuable1 CronHowto &#8211; Community Ubuntu Documentation.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[9,11,31],"tags":[],"class_list":["post-1023","post","type-post","status-publish","format-standard","hentry","category-gaming","category-linux","category-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2ZUZG-gv","_links":{"self":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/1023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/comments?post=1023"}],"version-history":[{"count":0,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/posts\/1023\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/media?parent=1023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/categories?post=1023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.threshold-zero.com\/cblog\/wp-json\/wp\/v2\/tags?post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}