Forum: Ruby Re: Prcoessing outoput from tail

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
555c1193071e97926fa67c038244c047?d=identicon&s=25 Phy Prabab (Guest)
on 2007-03-24 23:55
(Received via mailing list)
Cool, thanks I will check this out.  In the mean time I think I figured
out a work around, the only problem left is to figure out how to make
this thread-able:

IO.popen('tail -F foo.txt') {|file|
   while line = file.gets
   puts line

The "while line" was what helped and I even tried the file rolling and
tail complained but picked up the new file, so ijust need to process
that error.  Do you see any advantage using this over the gem (this way
I don't have to make everyone download the gem as well).


----- Original Message ----
From: Gustav Paul <>
To: ruby-talk ML <>
Sent: Saturday, March 24, 2007 3:41:12 PM
Subject: Re: Prcoessing outoput from tail

Phy Prabab wrote:
> ____________________________________________________________________________________
> Now that's room service!  Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.
Check out the file-tail gem:

Gustav Paul
19605c7ede229e507e894865308a6d53?d=identicon&s=25 Gustav Paul (Guest)
on 2007-03-25 00:45
(Received via mailing list)
Phy Prabab wrote:
> TIA!
> Phy
Great! Looks like that works fine. I haven't used the file-tail gem,
just remember having seen it somewhere a while ago, so I can't give you
much feedback on it. You mention making the code 'thread-able'...what do
you mean exactly?

This topic is locked and can not be replied to.