{"id":1184,"date":"2016-12-04T10:49:23","date_gmt":"2016-12-04T01:49:23","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1184"},"modified":"2017-02-13T14:22:24","modified_gmt":"2017-02-13T05:22:24","slug":"macos-%e8%87%aa%e5%8b%95%e8%b5%b7%e5%8b%95","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1184","title":{"rendered":"macOS \u81ea\u52d5\u8d77\u52d5"},"content":{"rendered":"<h3>xxx.plist<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;!DOCTYPE plist PUBLIC \"-\/\/Apple\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\"&gt;\r\n&lt;plist version=\"1.0\"&gt;\r\n  &lt;dict&gt;\r\n    &lt;key&gt;Label&lt;\/key&gt;\r\n    &lt;string&gt;myjob&lt;\/string&gt;\r\n    &lt;key&gt;ProgramArguments&lt;\/key&gt;\r\n    &lt;array&gt;\r\n    &lt;string&gt;\/Users\/Alice\/scripts\/myscript.sh&lt;\/string&gt;\r\n    &lt;\/array&gt;\r\n    &lt;key&gt;LowPriorityIO&lt;\/key&gt;\r\n    &lt;true\/&gt;\r\n    &lt;key&gt;Nice&lt;\/key&gt;\r\n    &lt;integer&gt;1&lt;\/integer&gt;\r\n    &lt;key&gt;StartCalendarInterval&lt;\/key&gt;\r\n    &lt;dict&gt;\r\n      &lt;key&gt;Hour&lt;\/key&gt;\r\n      &lt;integer&gt;18&lt;\/integer&gt;\r\n      &lt;key&gt;Minute&lt;\/key&gt;\r\n      &lt;integer&gt;01&lt;\/integer&gt;\r\n    &lt;\/dict&gt;\r\n    &lt;key&gt;StandardOutPath&lt;\/key&gt;\r\n    &lt;string&gt;\/usr\/local\/var\/log\/myscript.log&lt;\/string&gt;\r\n    &lt;key&gt;StandardErrorPath&lt;\/key&gt;\r\n    &lt;string&gt;\/usr\/local\/var\/log\/myscript.log&lt;\/string&gt;\r\n  &lt;\/dict&gt;\r\n&lt;\/plist&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u8d77\u52d5\u30b3\u30de\u30f3\u30c9<\/h3>\n<pre class=\"lang:default decode:true \" >$ sudo launchctl load xxx.plist<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u505c\u6b62\u30b3\u30de\u30f3\u30c9<\/h3>\n<pre class=\"lang:default decode:true \" >$ sudo launchctl unload xxx.plist<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>xxx.plist &lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt; &lt;!DOCTYPE plist PUBLIC &#8220;-\/\/Apple\/\/DTD PLIST 1.0\/\/EN&#8221; [&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":[5],"class_list":["post-1184","post","type-post","status-publish","format-standard","hentry","category-memo","tag-mac"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1184"}],"version-history":[{"count":5,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1184\/revisions"}],"predecessor-version":[{"id":1212,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1184\/revisions\/1212"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}