Skip to content

Instantly share code, notes, and snippets.

@rgruesbeck
Created February 6, 2015 06:12
Show Gist options
  • Save rgruesbeck/c15470a6322c79e6c70d to your computer and use it in GitHub Desktop.
Save rgruesbeck/c15470a6322c79e6c70d to your computer and use it in GitHub Desktop.
tail child process
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