阅读背景:

如何在节点中转义shell命令的字符串?

来源:互联网 

In nodejs, the only way to execute external commands is via sys.exec(cmd). I'd like to call an external command and give it data via stdin. In nodejs there does yet not appear to be a way to open a command and then push data to it (only to exec and receive its standard+error outputs), so it appears the only way I've got to do this right now is via a single string command such as:, the only way to execute external com




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: