Created
February 6, 2015 06:12
-
-
Save rgruesbeck/c15470a6322c79e6c70d to your computer and use it in GitHub Desktop.
tail 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
var tail = spawn('tail', ['-n0', '-f', '../irclogs/**/**/*.log'], { | |
stdio: [ | |
null, | |
'pipe', | |
fs.openSync("err.out", "w") | |
] | |
}); | |
tail.stdout.on('data', function(data){ | |
console.log(data.toString('utf8')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment