From: kjana@...4lab.to (YANAGAWA Kazuhisa) Date: 2002-03-02T22:24:11+09:00 Subject: Re: Like tail -f In message jean@chnou.factorial.l writes: > I have to make a little prog wich works like the "tail -f" command. It > reads a file continuously. >From the search result of the ML archive on .... The thread begins with [ruby-talk:9617] may be useful for you. In short, 1. You can't use IO.select for waiting. 2. Since IO#gets or such depends on stdio in C, you must IO#rewind and IO#seek for reading after EOF to call clearerr() and move a read pointer to appropriate position. 3. Instead you can IO#sysread which can continue to read after meeting EOF. In this case you must rescue EOFError. -- kjana@dm4lab.to March 2, 2002 A man is known by the company he keeps.