{"id":171,"date":"2014-07-26T23:32:13","date_gmt":"2014-07-26T14:32:13","guid":{"rendered":"http:\/\/the-takeo.com\/?p=171"},"modified":"2014-10-05T01:33:40","modified_gmt":"2014-10-04T16:33:40","slug":"mac%e3%81%a7%e3%83%90%e3%83%83%e3%83%81%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e7%9a%84%e3%81%aa%e3%82%82%e3%81%ae%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/the-takeo.com\/?p=171","title":{"rendered":"Mac\u3067\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u7684\u306a\u3082\u306e\u3092\u4f5c\u6210\u3059\u308b"},"content":{"rendered":"<p>\u4ed5\u4e8b\u4e0a\u3001Windows\u306ebat\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308b\u3002<br \/>\n\u30d1\u30bd\u30b3\u30f3\u3092\u307e\u3068\u3082\u306b\u89e6\u308b\u307e\u3067\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3059\u3089\u4f7f\u3044\u3082\u3057\u306a\u304b\u3063\u305f\u304c\u3001<br \/>\n\u610f\u5916\u3068\u3044\u308d\u3093\u306a\u64cd\u4f5c\u3092\u81ea\u52d5\u5316\u3067\u304d\u3066\u697d\u3057\u3044\u3002<br \/>\n\u3067\u3001bat\u30d5\u30a1\u30a4\u30eb\u7684\u306a\u3082\u306e\u3092Mac\u3067\u3082\u4f5c\u308d\u3046\u304b\u3068\u601d\u3063\u305f\u304c\u3001\u610f\u5916\u3068\u843d\u3068\u3057\u7a74\u304c\u3042\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n<hr \/>\n<ol>\n<li>\n<dl>\n<dt>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9f\u884c\u5185\u5bb9\u3092\u30c6\u30ad\u30b9\u30c8\u306b\u8a18\u8ff0<\/dt>\n<dd>\u4ee5\u4e0b\u306e\u69d8\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4efb\u610f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u8a18\u8ff0\u3059\u308b\u3002 <\/p>\n<pre class=\"lang:default decode:true \" >#!\/bin\/bash\r\nMY_DIRNAME=$(dirname $0)\r\ncd $MY_DIRNAME\r\n\uff1c\u5b9f\u884c\u5185\u5bb9\uff1e<\/pre>\n<p>\u3053\u306e\u3068\u304d\u3001\u6539\u884c\u30b3\u30fc\u30c9\u3092UNIX(LF)\u306b\u3059\u308b\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306f\u4f55\u3067\u3082\u826f\u3044\u304c\u3001\u6539\u884c\u30b3\u30fc\u30c9\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3053\u3068\u306b\u3059\u308b\u3053\u3068\u3002<br \/>\n\u8a18\u8ff0\u3057\u305f\u3089\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u3092\u201d.command\u201d\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3002\n<\/dd>\n<\/dl>\n<\/li>\n<li>\n<dl>\n<dt>\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u884c\u6a29\u9650\u3092\u4ed8\u3051\u308b<\/dt>\n<dd>\u4e0a\u8a18\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u305d\u306e\u307e\u307e\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001\u300c\u9069\u5207\u306a\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u304c\u306a\u3044\u305f\u3081\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002\u300d\u3068\u306a\u308a\u3001\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3053\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\u3002<\/li>\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u5b9f\u884c\u6a29\u9650\u3092\u4ed8\u3051\u308b\u3002\n<pre class=\"lang:default decode:true \" >chmod u+x \uff1c\u30d5\u30a1\u30a4\u30eb\u540d\uff1e.command<\/pre>\n<\/li>\n<\/ol>\n<\/dd>\n<\/dl>\n<\/li>\n<\/ol>\n<hr>\n<p>\u5f8c\u306f.command\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u304c\u958b\u304b\u308c\u3001\u8a18\u8ff0\u3057\u305f\u64cd\u4f5c\u5185\u5bb9\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002<br \/>\n\u5b9f\u884c\u5f8c\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u753b\u9762\u304c\u305d\u306e\u307e\u307e\u6b8b\u308b\u3068\u5473\u304c\u60aa\u3044\u306e\u3067\u3001\u7d42\u4e86\u5f8c\u753b\u9762\u304c\u9589\u3058\u308b\u3088\u3046\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u826f\u3044\u3002<\/p>\n<ol>\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u3001\u300c\u30bf\u30fc\u30df\u30ca\u30eb\u300d\u2192\u300c\u74b0\u5883\u8a2d\u5b9a\u300d\u3092\u958b\u304f<\/li>\n<li>\u300c\u8a2d\u5b9a\u300d\u2192\u300c\u30b7\u30a7\u30eb\u300d\u30bf\u30d6\u3067\u3001\u300c\u30b7\u30a7\u30eb\u306e\u7d42\u4e86\u6642\u300d\u3092\u300c\u30b7\u30a7\u30eb\u304c\u6b63\u5e38\u306b\u7d42\u4e86\u3057\u305f\u5834\u5408\u306f\u9589\u3058\u308b\u300d\u306b\u3059\u308b<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u3002<br \/>\n\u50d5\u306fC#\u3067\u4f5c\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u6574\u7406\u7cfb\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u3092mono\u3067\u5b9f\u884c\u3055\u305b\u308b\u306e\u306b\u3088\u304f\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30b3\u30de\u30f3\u30c9\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002 <\/p>\n<pre class=\"lang:default decode:true \" >#!\/bin\/bash\r\nMY_DIRNAME=$(dirname $0)\r\ncd $MY_DIRNAME\r\nmono \/Users\/(\u4e2d\u7565).exe<\/pre>\n<hr>\n<p>\u6765\u6708\u306b\u306f\u5e30\u56fd\u3067\u304d\u308b\u30fb\u30fb\u30fb\u306f\u305a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ed5\u4e8b\u4e0a\u3001Windows\u306ebat\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308b\u3002 \u30d1\u30bd\u30b3\u30f3\u3092\u307e\u3068\u3082\u306b\u89e6\u308b\u307e\u3067\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3059\u3089\u4f7f\u3044\u3082\u3057\u306a\u304b\u3063\u305f\u304c\u3001 \u610f\u5916\u3068\u3044\u308d\u3093\u306a\u64cd\u4f5c\u3092\u81ea\u52d5\u5316\u3067\u304d\u3066\u697d\u3057\u3044\u3002 \u3067\u3001bat\u30d5\u30a1\u30a4\u30eb\u7684\u306a\u3082\u306e\u3092Mac\u3067\u3082\u4f5c\u308d\u3046 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,4],"tags":[],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-mac","category-programming"],"_links":{"self":[{"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/the-takeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=171"}],"version-history":[{"count":7,"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":178,"href":"http:\/\/the-takeo.com\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions\/178"}],"wp:attachment":[{"href":"http:\/\/the-takeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/the-takeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/the-takeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}