document.write("<script language=\"javascript1.2\" type=\"text/javascript\">function emo_pop() {window.open('http://www.haloscan.com/commenthelp.php','Help','width=400,height=360,resizable=yes,scrollbars=yes');}</script><table width=\"97%\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"MainTable\">  <tr>    <td>    <div align=\"center\"><p>(^^)v3 smile peace ver.3</p>    </div>    </td>  </tr><tr><td class=\"MessageCell\">    <a name=\"244038\"></a>        <p>なんでしょうね。<br>全くの当てずっぽうで明後日の方向のことかもしれませんが、こんな風に想像してみました。<br><br>port 9 は TCP/UDP ポートの 9 番のことなんじゃないかなあ。9 番ポートは discard というサービスのポートで送られてきたデータを飲み込むだけのもののようです。(よく知らない)<br><br>で、デーモンやサービスを準備する launchd がそれを準備しようとしたのだけれどできなかったと。<br><br>その理由が (os/kern) no access。access できないじゃなくてアクセス無しというのがちょっと???ですが…。<br><br>というわけで<br>/System/Library/LaunchDaemons/<br>や<br>/Library/LaunchDaemons/<br>に何か壊れたファイル(launchd の設定ファイルで XML)があるんじゃないかなあと想像しました。<br /><span class=\"byline\">           OKAMURA | <a href=\"http://homepage.mac.com/yuji_okamura/iSawIt/index.html\" title=\"http://homepage.mac.com/yuji_okamura/iSawIt/index.html\">Homepage</a> | 08.09.24 | <a href=\"#244038\" title=\"Link to this comment\">#</a></span></p><hr /></td></tr><tr><td class=\"MessageCell\">    <a name=\"244039\"></a>        <p>ついでに。<br><br>恐らく今時の流行だとこういう処理になるんじゃないかなあ。<br><br>1. iTunes から最新演奏曲のリストを取得して XML ファイルにする。<br>2. XML ファイルが前のと何か違っていたらアップロードする。違いは diff でチェックする。<br>3. ページの JavaScript から (If-Modified-Since 付きでアクセスして XML ファイルが更新されたときだけ) XmlHttpRequest でロードする。<br>4. ロードしたら表示を更新する。<br /><span class=\"byline\">           OKAMURA | <a href=\"http://homepage.mac.com/yuji_okamura/iSawIt/index.html\" title=\"http://homepage.mac.com/yuji_okamura/iSawIt/index.html\">Homepage</a> | 08.09.24 | <a href=\"#244039\" title=\"Link to this comment\">#</a></span></p><hr /></td></tr><tr><td class=\"MessageCell\">    <a name=\"244040\"></a>        <p>早々に、ありがとうございます。<br>早速チェックします。<br><br>で、XmlHttpRequestは現在勉強中でございます。もちろんそれを狙ってはいるのですが...<br /><span class=\"byline\">           會澤 | <a href=\"http://homepage.mac.com/kaizawa/\" title=\"http://homepage.mac.com/kaizawa/\">Homepage</a> | 08.09.24 | <a href=\"#244040\" title=\"Link to this comment\">#</a></span></p><hr /></td></tr><tr><td class=\"MessageCell\">    <a name=\"244044\"></a>        <p>本文、追記しました。<br><br>一応cronの使用を止めました。それぞれ、バックグラウンドでスクリプトをループさせて、nohupをとりあえず使っていますが、良い方法が他にもあるのかも。<br /><span class=\"byline\">           會澤 | <a href=\"http://homepage.mac.com/kaizawa/\" title=\"http://homepage.mac.com/kaizawa/\">Homepage</a> | 08.09.24 | <a href=\"#244044\" title=\"Link to this comment\">#</a></span></p><hr /></td></tr><tr><td class=\"MessageCell\">    <a name=\"244047\"></a>        <p>そのスレッド、最初の方だけ読んで英語を読む気力が無くなったのですが、cron がトリガーになってそのメッセージが出るのでしたら launchd agent を利用するのがいいかもしれません。<br><br>man launchd.plist をして StartInterval のところを読むと使えるというのがわかるかと思います。~/Library/LaunchAgents にそのスクリプトを起動する設定を書いた plist ファイルを置くとやってくれます。plist ファイルは /Developer/Applications/Utilities/Property List Editor.app を使って書くとよいでしょう。サンプルとして /Library/LaunchAgents/ や /System//Library/LaunchAgents/ にあるファイルを見るとなんとなく書けるかもしれません。<br><br>…なんか大げさなことに…<br /><span class=\"byline\">           OKAMURA | <a href=\"http://homepage.mac.com/yuji_okamura/iSawIt/index.html\" title=\"http://homepage.mac.com/yuji_okamura/iSawIt/index.html\">Homepage</a> | 08.09.25 | <a href=\"#244047\" title=\"Link to this comment\">#</a></span></p><hr /></td></tr><tr><td class=\"MessageCell\">    <a name=\"244052\"></a>        <p>launchd agentって何かおっかない気がするんですよねぇ。<br>でもまぁチョット見てみます。<br /><span class=\"byline\">           會澤 | <a href=\"http://homepage.mac.com/kaizawa/\" title=\"http://homepage.mac.com/kaizawa/\">Homepage</a> | 08.09.25 | <a href=\"#244052\" title=\"Link to this comment\">#</a></span></p><hr /></td></tr><tr><td class=\"MessageCell\">    <a name=\"245383\"></a>        <p>初めまして，こんにちは．<br>私も同じところ：<br>com.apple.launchd[1](0x10….cron[xxxx]):Could not setup Mach task special port 9<img src=\"http://www.haloscan.com/images/smileys/pascontent.gif\" border=\"0\" alt=\"\" width=\"15\" height=\"15\" />os/kern) no access<br>でつまずきましたが，原因はOS側ではなく，導入しようとしたアプリケーションの設定の問題でした（意図せず書き込みできない階層にファイルを書き込もうとしていた）．<br>ご参考になれば幸いです．<br /><span class=\"byline\">           Kapa | 08.11.17 | <a href=\"#245383\" title=\"Link to this comment\">#</a></span></p><hr /></td></tr><tr><td class=\"MessageCell\">    <a name=\"245863\"></a>        <p>Kapaさんありがとうございました。しかし...うぅむ、どうもそうではないみたい。<br /><span class=\"byline\">           會澤 | <a href=\"http://homepage.mac.com/kaizawa/\" title=\"http://homepage.mac.com/kaizawa/\">Homepage</a> | 08.12.02 | <a href=\"#245863\" title=\"Link to this comment\">#</a></span></p><hr /></td></tr><tr>    <td class=\"InputCell\">                  <div id=\"newcomment\"></div><form method=\"post\" name=\"addComment\" action=\"http://www.haloscan.com/comments/kaizawa/20080924T152924/\" target=\"_self\">        <p>    Name: <br />          <input name=\"name\" type=\"text\" size=\"38\" value=\"\" /><br />          URL: <br />          <input name=\"url\" type=\"text\" size=\"38\" value=\"\" /><br />          Comment:&nbsp;&nbsp;<a href=\"javascript:emo_pop()\" title=\"Smiley and tag help\" target=\"_self\">?</a>&nbsp;<br />          <textarea name=\"addMessage\" rows=\"12\" cols=\"38\"></textarea><br /><input type=\"checkbox\" name=\"subscribe\" id=\"subscribe\" value=\"1\" /><label for=\"subscribe\">Notify me of followup comments via email</label>        </p>        <p class=\"PSubmit\"><input name=\"submit\" type=\"submit\" value=\"Publish\" style=\"font-weight: bold;\" class=\"SubmitButton\" />&nbsp;<input name=\"previewMessage\" type=\"submit\" value=\"Preview\" class=\"SubmitButton\" />        </p>      <input type='hidden' name='user' value='kaizawa' /><input type='hidden' name='comment' value='20080924T152924' /></form>    </td></tr>  <tr>    <td><p align=\"center\">        Commenting by <a href=\"http://www.haloscan.com/\" target=\"_blank\">HaloScan</a></p>      </td>  </tr></table><img src=\"http://c5.statcounter.com/counter.php?sc_project=561713&amp;java=0&amp;security=01eeff58\" alt=\"\" border=\"0\" /></body>");