{"id":5453,"date":"2012-07-29T20:42:49","date_gmt":"2012-07-30T01:42:49","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=5453"},"modified":"2012-07-29T20:42:53","modified_gmt":"2012-07-30T01:42:53","slug":"schedule-jobs-using-launchd","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/07\/29\/schedule-jobs-using-launchd\/","title":{"rendered":"Schedule Jobs Using launchd"},"content":{"rendered":"<p><a href=\"http:\/\/nb.nathanamy.org\/2012\/07\/schedule-jobs-using-launchd\/\">Nathan Grigg<\/a> (via <a href=\"https:\/\/twitter.com\/drdrang\/status\/228297229088206848\">Dr. Drang<\/a>):<\/p>\n<blockquote cite=\"http:\/\/nb.nathanamy.org\/2012\/07\/schedule-jobs-using-launchd\/\"><p>Almost anything you can do with cron you can do with launchd, but with more power and flexibility. Unlike cron, launchd does not assume that your computer is always running. So if your computer happens to be sleeping at the time a job is scheduled, it will run the job when it wakes up. This is probably the best feature of launchd, because it allows me to run scripts on my iMac while still letting it sleep when I&rsquo;m not using it.<\/p>\n<p>I have pieced together what I know about using launchd to schedule jobs from tutorials across the internet, trial and error, and the manuals. This is my attempt to gather all my knowledge about this in one place.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Nathan Grigg (via Dr. Drang): Almost anything you can do with cron you can do with launchd, but with more power and flexibility. Unlike cron, launchd does not assume that your computer is always running. So if your computer happens to be sleeping at the time a job is scheduled, it will run the job [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-5453","post","type-post","status-publish","format-standard","hentry","category-technology"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=5453"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5453\/revisions"}],"predecessor-version":[{"id":5455,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5453\/revisions\/5455"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=5453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=5453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=5453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}