Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created November 5, 2017 06:05
Show Gist options
  • 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