Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created November 5, 2017 06:05
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 zzarcon/9ee32e36b9589237cfcef1e36b04ae33 to your computer and use it in GitHub Desktop.
Save zzarcon/9ee32e36b9589237cfcef1e36b04ae33 to your computer and use it in GitHub Desktop.
const subprocess = exec(command);
subprocess.stdout.pipe(process.stdout);
subprocess.stderr.pipe(process.stdout);
subprocess.on('exit', code => process.exit(code));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment