Skip to content

Instantly share code, notes, and snippets.

@cziem
Created October 21, 2019 10:59
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 cziem/31928b26fffc537ede94c5144a5badbc to your computer and use it in GitHub Desktop.
Save cziem/31928b26fffc537ede94c5144a5badbc to your computer and use it in GitHub Desktop.
Node script to spawn a new child process
const { spawn, exec } = require('child_process')
const drone = spawn('python', ['./src/controller/main.py'])
drone.stdout.pipe(process.stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment