Solved

tail -f via dhtml?

Posted on 2000-03-04
4
278 Views
Last Modified: 2006-11-17
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.


0
Comment
Question by:bitsrfr
4 Comments
 
LVL 4

Accepted Solution

by:
brigmar earned 50 total points
ID: 2583353
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.

<HTML>
 <HEAD>
  <META http-equiv="refresh" content="60">
 ..etc


Brian
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 2583860
To use javascript you would need to have a frameset and loop a cgi to read the latest output and use
top.visibleframe.document.write('............');
top.visibleframe.scroll(0,10000000000);
to add to the page

Michel
0
 
LVL 1

Expert Comment

by:larholm
ID: 2584884
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.

/Thor
0
 

Author Comment

by:bitsrfr
ID: 2773682
This is a pretty low weight idea.  This will work pretty well.  Thanks.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now