From: Phy Prabab Date: 2007-02-22T18:41:57+09:00 Subject: Re: ruby tail --0-1393801793-1172137313=:82313 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Actually, I am not sure how this would work. If I do this, I get no output= from the file:=0A=0A`tail -f sim.out`=0A=0ASo there is something basic I a= m missing here. Any help?=0A=0ATIA,=0APhy=0A=0A----- Original Message ----= =0AFrom: Kevin Jackson =0ATo: ruby-talk ML =0ASent: 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 similar 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 file if it is "rolled".=0A=0AJust call out to tail=0A=0Adef ta= il(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_________________________________= ___________________________________________________=0ANeed a quick answer? = Get one in minutes from people who know.=0AAsk your question on www.Answers= .yahoo.com --0-1393801793-1172137313=:82313--