-
-
Save bnoordhuis/9b9491838fb2c30b68ea to your computer and use it in GitHub Desktop.
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
var exec = require('child_process').exec; | |
process.stdin.resume(); | |
process.stdin.on('data', function(data) { | |
console.error('' + data); | |
}); | |
process.stdin.on('close', function() { | |
exec('echo OK', function(err, stdout, stderr) { | |
if (err) throw err; | |
console.error('stdout: %j', stdout); | |
console.error('stderr: %j', stderr); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment