【发布时间】:2012-10-08 02:38:51
【问题描述】:
在 node.js 中,我想找到一种方法来获取 Unix 终端命令的输出。有没有办法做到这一点?
function getCommandOutput(commandString){
// now how can I implement this function?
// getCommandOutput("ls") should print the terminal output of the shell command "ls"
}
【问题讨论】:
-
这是重复的,还是描述完全不同的东西? stackoverflow.com/questions/7183307/…
-
This 你可能会感兴趣。
标签: node.js shell command-line-interface