Created
October 21, 2019 10:59
-
-
Save cziem/31928b26fffc537ede94c5144a5badbc to your computer and use it in GitHub Desktop.
Node script to spawn a new child process
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
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