Skip to content

Instantly share code, notes, and snippets.

@AvianFlu AvianFlu/termynull.js Secret
Last active Dec 15, 2015

What would you like to do?
var spawn = require('child_process').spawn,
waitpid = require('waitpid');
var termynull = spawn(process.argv[2], process.argv.slice(3), {
stdio: 'inherit'
var r = waitpid(;
termynull.on('exit', function (code) {
console.log('TermyNull exited with code %d', code);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.