If I understand you correctly you want to run the equivalent of tail -f over a web link. The problem there is the CGI implementation doesnt really like things like that. Most servers time out their CGI scripts after 30-60 seconds or so (as defined by the server config) and any data sent after that will be lost.

If you want to continuously send data to a web page you need to do one of three things. The first option is to use some sort of server push technology to keep on updating the page, however IE doesn't really like this. The second option is to put a refresh meta tag into the page you generate with your CGI script so that your page reloads itself after every n seconds, an example of this is below.

<meta http-equiv="refresh" content="5;URL=This.html">

This method, using the tag above, would refresh your page every 5 seconds. This method is very resources-intensive though.

The final option is to place an applet or flash/director movie on your page and then establish a socket between that and a script on your machine. You can then maintain a permanent connection between the two. A good place to start looking into this option ould be via perlipc.

On the other hand, I may have grasped the wrong end of the stick completely so please ignore me ;)

$japh->{'Caillte'} = $me;


In reply to Re: A Simple by Caillte
in thread A Simple "Tail" Question by lindex

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.