

{"id":566,"date":"2017-02-07T12:27:01","date_gmt":"2017-02-07T02:27:01","guid":{"rendered":"https:\/\/kng.tech\/blog\/?p=566"},"modified":"2017-02-08T10:46:32","modified_gmt":"2017-02-08T00:46:32","slug":"schedule-restart-in-ubuntu","status":"publish","type":"post","link":"https:\/\/kng.tech\/blog\/schedule-restart-in-ubuntu\/","title":{"rendered":"Schedule Restart in Ubuntu"},"content":{"rendered":"<p>Use crontab which OSX is also using.<\/p>\n<pre><code>\r\nsudo crontab -e\r\n0 4   *   *   *    \/sbin\/shutdown -r +5<\/code><\/pre>\n<pre><code>\r\nm      h    dom        mon   dow       command\r\nminute hour dayOfMonth Month dayOfWeek commandToRun<\/code><\/pre>\n<p>this would reboot your system every day at 4:05am. (4:00am + 5 minutes)<\/p>\n<p><a href=\"http:\/\/www.adminschoice.com\/crontab-quick-reference\" target=\"_blank\">Reference<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use crontab which OSX is also using. sudo crontab -e 0 4 * * * \/sbin\/shutdown -r +5 m h dom mon dow command minute hour dayOfMonth Month dayOfWeek commandToRun this would reboot your system every day at 4:05am. (4:00am + 5 minutes) Reference<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[65,63],"class_list":["post-566","post","type-post","status-publish","format-standard","hentry","category-tech","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":3,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/566\/revisions"}],"predecessor-version":[{"id":569,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/566\/revisions\/569"}],"wp:attachment":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/media?parent=566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/categories?post=566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/tags?post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}