Created
April 29, 2017 00:35
-
-
Save audinue/ef109d00f7cb2301b1b4db2d55956f9c to your computer and use it in GitHub Desktop.
Start a background process in Windows with Node JS
This file contains 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
var childProcess = require('child_process') | |
childProcess.spawn('start', ['/b', 'ping', 'http://google.com'], { | |
shell: true, | |
stdio: 'ignore' | |
}) | |
console.log('Process started') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment