Is it possible to execute an external program from within node.js? Is there an equivalent to Python's os.system()
or any library that adds this functionality?
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- google-drive can't get push notifications
- How to reimport module with ES6 import
- Why is `node.js` dying when called from inside pyt
- How to verify laravel passport api token in node /
相关文章
- node连接远程oracle报错
- How can make folder with Firebase Cloud Functions
- @angular-cli install fails with deprecated request
- node.js modify file data stream?
- What is the difference between execl and execv?
- How to resolve hostname to an ip address in node j
- Transactionally writing files in Node.js
- Log to node console or debug during webpack build
The simplest way is:
unref is necessary to end your process without waiting for "yourApp"
Here are the exec docs
exec has memory limitation of buffer size of 512k. In this case it is better to use spawn. With spawn one has access to stdout of executed command at run time
From the Node.js documentation:
See http://nodejs.org/docs/v0.4.6/api/child_processes.html