{"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/derwind/","blog_url":"https://randommemory.hatenablog.com/","provider_name":"Hatena Blog","categories":["Objective-C"],"width":"100%","url":"https://randommemory.hatenablog.com/entry/2018/09/11/201434","image_url":null,"version":"1.0","author_name":"derwind","title":"\u5916\u90e8\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2018%2F09%2F11%2F201434\" title=\"\u5916\u90e8\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"objective c - Execute a terminal command from a Cocoa app - Stack Overflow\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3002 What is the sh -c command? - Ask Ubuntu\u306e You can simulate login-shells behavior using the -l option: \u3092\u53c2\u8003\u306b\u3057\u3066 /bin/sh -c \u90e8\u5206\u3092 /bin/bash -lc \u3067\u5b9f\u88c5\u3057\u3066\u3084\u308b\u3068\u3001 ~/.bash_profile \u306a\u3069\u304c\u8aad\u307f\u8fbc\u307e\u308c\u305f\u72b6\u614b\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3067\u304d\u308b\u306e\u3067 $PATH \u3092\u901a\u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u5916\u90e8\u30b3\u30de\u30f3\u30c9\u306a\u3069\u3092\u547c\u3073\u51fa\u3057\u3084\u3059\u2026","published":"2018-09-11 20:14:34","type":"rich","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6"}