Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Log file tailing

by matija (Priest)
on May 17, 2004 at 09:27 UTC ( [id://353902]=note: print w/replies, xml ) Need Help??


in reply to Log file tailing

Doing select for ordinary files won't do you any good. Disk files (as opposed to sockets and pipes) are always "ready for reading".

I suggest you look at the code for File::Tail. While I never wrote any hooks to tell the calling program when there was no traffic in the file, I do handle it internaly and you could add it to the code fairly easily.

Send me a patch once it's done, and if it's fairly clean, I'll include it in the next release. (Note, I suggest a callback for implementing that).

Replies are listed 'Best First'.
Re: Re: Log file tailing
by wellsja (Novice) on May 17, 2004 at 09:41 UTC
    Hi

    Unfortunatly, Im very new to perl and just starting out, so I would not know how to write a patch for the File::Tail module. Maybe you can help me implement this ??

    Kind Regards James

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://353902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found