From: Phy Prabab Date: 2007-02-22T18:38:17+09:00 Subject: Re: ruby tail --0-1067479252-1172137093=:54417 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable The issue there is that how do I detect new output and then capture that ou= tput as in tail -f ?=0A=0A----- Original Message ----=0AFrom: Kevin J= ackson =0ATo: ruby-talk ML =0A= Sent: Thursday, February 22, 2007 1:33:19 AM=0ASubject: Re: ruby tail=0A=0A= > Is there a gem or perhaps a method I am not aware of that does the simila= r function of tail? Or is there a way to use tail in ruby? I have a file= that I want to process as new data is appended to the file. This is easy = enough using tail and tail has the added advantage that it can follow a fil= e if it is "rolled".=0A=0AJust call out to tail=0A=0Adef tail(f)=0A `tail = f`=0Aend=0A=0Aor similar - if tail does what you want, use it=0A=0AKev=0A= =0A=0A=0A=0A=0A=0A=0A=0A =0A_______________________________________________= _____________________________________=0ASucker-punch spam with award-winnin= g protection. =0ATry the free Yahoo! Mail Beta.=0Ahttp://advision.webevents= .yahoo.com/mailbeta/features_spam.html --0-1067479252-1172137093=:54417--