Created
September 12, 2014 13:50
-
-
Save xat/fbcf91eab6fd55d0dbf4 to your computer and use it in GitHub Desktop.
tail
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 spawn = require('child_process').spawn; | |
var tailStream = function(file) { | |
return spawn('tail', ['-f', file]).stdout; | |
}; | |
tailStream('./blah.txt').pipe( ... ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment