tail -f via dhtml?

Hi All,

   I have a web page that will kick off a process that runs for some time (~ 1hr).  I would like to stream the output from that program back to the web page.  Is this possible?  It seems I will have to use server push I guess.  The process runs on the web server.  I was hoping to somehow use javascript/dhtml.

Who is Participating?
brigmarConnect With a Mentor Commented:
How about having the output streamed to a HTML file that has a meta refresh tag of say.... 60 seconds. The browser will then request a new version of the page evey minute.

  <META http-equiv="refresh" content="60">

Michel PlungjanIT ExpertCommented:
To use javascript you would need to have a frameset and loop a cgi to read the latest output and use
to add to the page

To use true streaming, you must let the server send out the HTML file without closing it.

This can be done in two ways, either via Perl or through your own custommade webserver (which I did), depending on your needs.

bitsrfrAuthor Commented:
This is a pretty low weight idea.  This will work pretty well.  Thanks.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.