[Sussex] Ruby file open question
Ronan Chilvers
ronan at thelittledot.com
Mon Oct 31 10:31:21 UTC 2005
Hi folks
Any rubyers out there know if you can do this (Perl):
open(TAIL, "tail -f /var/log/messages");
while(<TAIL>)
#do stuff
}
close(TAIL);
but in ruby? I've found and played with the file-tail gem but its very
slow to respond to file changes.
Any ideas?
Cheers
--
Ronan
e: ronan at thelittledot.com
t: 01903 739 997
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/sussex/attachments/20051031/9dbd37d0/attachment.pgp
More information about the Sussex
mailing list