Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Prcoessing outoput from tail
Gustav - Railist
3/24/2007 10:41:00 PM
Phy Prabab wrote:
> Hello,
>
> I am trying to figure out how to perpetually process the output from a file. That is I continuously want to process output that is appended to a file and that file could get rolled out at any time. I use popen w/tail, but this opens the file each time and I have to reprocess all the files content. Is there a better way to do this or a library that would help me? I know that I could probably open the file, tack location, and watch the inode to make sure the file has not been rolled, but that amounted to a lot of mistakes and I could never get it work properly.
>
> Thanks for the help!
> Phy
>
>
>
>
>
> ____________________________________________________________________________________
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.
>
http://farechase.yahoo.com/promo-generi...
>
Check out the file-tail gem:
http://file-tail.ruby...
Cheery-o,
Gustav Paul
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Prcoessing outoput from tail
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password