From: Bertram Scharpf Date: 2007-08-22T19:13:52+09:00 Subject: Re: tail, start reading at EOF Hi, Am Mittwoch, 22. Aug 2007, 18:20:12 +0900 schrieb Rebhan, Gilbert: > how to alter tail function to start at the end > of the file, not reading the lines already existing in file ? = file.seek 0, IO::SEEK_END > File = File.open(ARGV[0]) > while File.exists?(file.path) > puts file.gets while !file.eof? > sleep(1) > end File#eof? does not work here. When the file has been extended it still returns true even though File#gets will return a String object. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de