Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2023-02-04 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (30 votes). Check out past polls.

    Notices?