Skip to content

Instantly share code, notes, and snippets.

@audinue
Created April 29, 2017 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save audinue/ef109d00f7cb2301b1b4db2d55956f9c to your computer and use it in GitHub Desktop.
Save audinue/ef109d00f7cb2301b1b4db2d55956f9c to your computer and use it in GitHub Desktop.
Start a background process in Windows with Node JS
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