Solved

tail -f via dhtml?

Posted on 2000-03-04
4
282 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Review of the nodejs code 1 36
Echo'd values in dropdowns 6 30
javascript and jquery question 4 24
Open grouped links on a page in new tabs via jquery 5 45
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

749 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