Advertisement
Guest User

Untitled

a guest
Oct 19th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. logfile = "log"
  4.  
  5. f = File.open(logfile, "r")
  6. f.seek(0, IO::SEEK_END)
  7. while true do
  8.     select([f])
  9.     line = f.gets
  10.     puts "#{line}"
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement