daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Sep 19th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. var colors = require('colors');
  2. var util = require('util');
  3. var child_process = require('child_process');
  4.  
  5. file_1 = process.argv[2];
  6. tail_1 = child_process.spawn("tail", ["-f", file_1]);
  7. tail_1.stdout.on('data', function(data) {
  8.     console.log( (Date()+file_1).grey );
  9.     console.log( data.toString().green  ) ;
  10. });
  11.  
  12. file_2 = process.argv[3];
  13. tail_2 = child_process.spawn("tail", ["-f", file_2]);
  14. tail_2.stdout.on('data', function(data) {
  15.     console.log( (Date()+file_2).grey );
  16.     console.log( data.toString().red  ) ;
  17. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top