Created
September 8, 2016 19:17
-
-
Save lholmquist/0382f71f15fdb39a856afb562a7fa401 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const spawn = require('child_process').spawn; | |
const cmd = 'sh'; | |
const args = ['-c', 'node index.js']; | |
const options = { | |
env: process.env, | |
stdio: [0, 1, 2] | |
}; | |
spawn(cmd, args, options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment