in reply to Re: perl/tk: text output from tail function
in thread perl/tk: text output from tail function

I think your example only able read a single file in a time rite?But unable to read multi-file.
  • Comment on Re^2: perl/tk: text output from tail function

Replies are listed 'Best First'.
Re^3: perl/tk: text output from tail function
by zentara (Cardinal) on Apr 06, 2011 at 18:44 UTC
    I think your example only able read a single file in a time rite?But unable to read multi-file.

    Right. But, duh, how hard is it to to open several files for tail? I just showed you how to do one. There is no limit to how many fileevents you can setup, to watch as many files as you want. You THEN can write the output in different colors to the same text box, OR you can have each write to their own textbox.

    If you want automatic updates, setup Tk::repeat timers to refresh your text boxes with new tail output. Its all very straight forward, but a bit too big for me just to whip out off hand.

    C'mon.... you can do it... ;-)

    It's a sunny day, and I'm not a script writing service, unless you are a check-writing service :-)


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh