

{"id":219,"date":"2016-05-25T12:50:43","date_gmt":"2016-05-25T02:50:43","guid":{"rendered":"https:\/\/kng.tech\/blog\/?p=219"},"modified":"2016-05-25T12:50:43","modified_gmt":"2016-05-25T02:50:43","slug":"crontab-force-shutdown-in-osx","status":"publish","type":"post","link":"https:\/\/kng.tech\/blog\/crontab-force-shutdown-in-osx\/","title":{"rendered":"Crontab - Force Shutdown in OSX"},"content":{"rendered":"<p><code>sudo crontab -e<\/code><\/p>\n<p>Press i (insert text in vim)<br \/>\n<code>30 19 * * 5 \/sbin\/shutdown -h now<\/code><\/p>\n<p>Press esc (to exit editing)<br \/>\nPress shift+z shift+z (Writes changes and quit vim)<\/p>\n<p>Time format in Crontab:<br \/>\n* * * * *  command to execute<br \/>\n\u2502 \u2502 \u2502 \u2502 \u2502<br \/>\n\u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500\u2500 day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)<br \/>\n\u2502 \u2502 \u2502 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 month (1 - 12)<br \/>\n\u2502 \u2502 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 day of month (1 - 31)<br \/>\n\u2502 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 hour (0 - 23)<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 min (0 - 59)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo crontab -e Press i (insert text in vim) 30 19 * * 5 \/sbin\/shutdown -h now Press esc (to exit editing) Press shift+z shift+z (Writes changes and quit vim) Time format in Crontab: * * * * * command to execute \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2514\u2500\u2500\u2500 day of week [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[28,26,32],"class_list":["post-219","post","type-post","status-publish","format-standard","hentry","category-tech","tag-mac","tag-osx","tag-terminal"],"_links":{"self":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/219","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=219"}],"version-history":[{"count":1,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":220,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions\/220"}],"wp:attachment":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}