Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: A Simple

by c-era (Curate)
on Apr 25, 2001 at 16:37 UTC ( #75426=note: print w/replies, xml ) Need Help??

in reply to A Simple "Tail" Question

You can always use File::Tail. The only problem is figuring out how you want to signal your script to end (as it blocks until a new line is added to the file).

Replies are listed 'Best First'.
Re: Re: A Simple
by lindex (Friar) on Apr 25, 2001 at 16:41 UTC
    Ah but thats the thing, I dont want the output from the script to end until the client request ends. i.e. a real tail, not just a snapshot.

    /****************************/, /*****************************/
      As far as server push things go, remember that IE doesnt really like pushing things. See (Re: Generating a 'please wait' message and push_handler and status page question.) You may be able to do something with Javascript? What about a frame that reloads every second or some-such-what-not? Every time it reloaded, it would get the latest tail info.

      I know, in theory you could flush the output ($| = 1; (see your replies above)) and the browser will display stuff as it gets it. But I know IE sometimes waits until the page is complete, then shows said content. Oh well. Just my $.02. Hope it helps.

      _14k4 - (

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-03-25 17:22 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (63 votes). Check out past polls.