Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Tk tail -f - How?

by broquaint (Abbot)
on Oct 09, 2003 at 08:40 UTC ( #297850=note: print w/replies, xml ) Need Help??


in reply to Tk tail -f - How?

Sounds like File::Tail is the ticket, and I quote from the docs
File::Tail - Perl extension for reading from continously updated files
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Tk tail -f - How?
by rinceWind (Monsignor) on Oct 09, 2003 at 12:58 UTC
    I don't think that File::Tail will cope with a Tk MainLoop, and Tk's way of doing everything through callbacks. But, I would be interested if anyone has made File::Tail work with Tk.

    I have home-grown something similar, albeit on a Unix platform. Here is an excerpt from my process monitoring application (which has the ability to open up windows with log file tails in them). Note the "freeze frame" button - a useful feature on a log tailing window. I also limit the number of lines to display in the window to be $logMax.

    --
    I'm Not Just Another Perl Hacker
Re: Re: Tk tail -f - How?
by msemtd (Scribe) on Oct 09, 2003 at 09:23 UTC
    Hmm, thanks but I've tried that - the ActiveState package has no Win32 version and the CPAN tarball has 100% failure upon make test (the former because of the latter no doubt). The crux _is_ "Win32 operation required" :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2020-10-29 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (271 votes). Check out past polls.

    Notices?