Joel Newkirk wrote:
I'm interested in tailing two logs (qmail) simultaneously, and
interleaving the data in something approaching chronological sequence,
as well as dealing with logfile rotation gracefully.

Any suggestions?


Check out File::Tail on CPAN, particularly the section on 'select' and the mentioned example script, it should get you close.


http://search.cpan.org/~mgrabnar/File-Tail-0.98/Tail.pm

And I might as well throw a POE reference in here, as usual this sort of thing is trivial in POE, particularly since there is already a Wheel written to do it, check out the cookbook entry here (not for the faint of heart):

http://poe.perl.org/?POE_Cookbook/Watching_Logs

HTH,

http://danconia.org

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to