{"categories":["C++","node.js"],"title":" node.js \u306e exec \u306e\u540c\u671f\u7248\u3092\u4f5c\u3063\u3066\u307f\u305f","author_name":"hecomi","height":"190","published":"2012-07-08 19:15:46","type":"rich","provider_name":"Hatena Blog","blog_url":"https://tips.hecomi.com/","image_url":null,"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftips.hecomi.com%2Fentry%2F20120708%2F1341742546\" title=\" node.js \u306e exec \u306e\u540c\u671f\u7248\u3092\u4f5c\u3063\u3066\u307f\u305f - \u51f9\u307fTips\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/hecomi/","version":"1.0","width":"100%","blog_title":"\u51f9\u307fTips","url":"https://tips.hecomi.com/entry/20120708/1341742546","description":"\u306f\u3058\u3081\u306b \u30bf\u30a4\u30c8\u30eb\u901a\u308a node.js \u306e exec \u95a2\u6570\u306e\u540c\u671f\u7248\u3092\u4f5c\u3063\u3066\u307f\u305f\u3068\u3044\u3046\u304a\u8a71\u3067\u3059\u3002 \u554f\u984c\u70b9 node.js \u306e child_process \u304b\u3089\u4f7f\u3048\u308b exec \u95a2\u6570\u306f\u975e\u540c\u671f\u306b\u884c\u308f\u308c\u308b\u306e\u3067\u3001\u4f8b\u3048\u3070 A \u3068\u3044\u3046\u51e6\u7406\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u884c\u306a\u3063\u3066\u6210\u5426\u5224\u5b9a\u3092\u3057\u3066\u304b\u3089\u3001 B \u3092\u884c\u3044\u305f\u3044\u3001\u3068\u3044\u3063\u305f\u6642\u306b\u306f\u30cd\u30b9\u30c8\u3059\u308b\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002A \u3068 B \u306e\u51e6\u7406\u304c\u305d\u308c\u305e\u308c\u5225\u306e\u95a2\u6570\u304b\u3089 exec \u3055\u308c\u305f\u3082\u306e\u3060\u3068\u3059\u308b\u3068\u304a\u624b\u4e0a\u3052\u72b6\u614b\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u3092\u793a\u3059\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 var exec = require('child_process').exec; function ls() { exec(\u2026"}