> -----Original Message-----
> From: Graham Burley [mailto:burley@Encompasserve.org]
> Sent: August 13, 2008 7:13 AM
> To: Info-VAX@Mvb.Saic.Com
> Subject: Re: Example: VMS to Web Browser "push" technology
>
> In article , "Richard Maher"
> writes:
>
> > Just goes to show what can be achieved when all the
> > http/webserver/interpreter/process-management crud is removed.
>
> I couldn't resist enduring some crud-wading to demonstrate an
> alternate approach (AJAX polling), the example can be seen at:
>
> http://deathrow.vistech.net/~spider/ajaxpoll.html
Neat. In the time honoured tradition of stealing^Jborrowing code I do not
understand and hacking until something happens, here is a MONITOR PROCESS
for people who prefer HTML over text screens.
You can monitor PROCESS/TOPCPU, PROCESS/TOPFAULT, PROCESS/TOPBIO or
PROCESS/TOPDIO by selecting the button from the bottom of the page. A few
seconds after if first starts you will see MONITOR PROCESS/TOPCPU by
default. The top of the page will always show the screen with no data, you
have to scroll down to get to the real data.
******** WARNING **********
On my system a new sub-process is created every time the screen refreshes. I
am not sure if there is a tweak I can do to change Apache to reuse the
original process. If anyone knows of a way to do it then let me know,
otherwise watch that you do not fill a disk with accounting data by leaving
this page open.
******** WARNING **********
$ create apache$common:[cgi-bin]monitor.com
$deck
$ write sys$output "Cache-Control: no-cache, must-revalidate"
$ write sys$output "Expires: Mon, 26 Jul 1997 05:00:00 GMT"
$ write sys$output "Content-Type: text/plain"
$!
$ write sys$output ""
$ write sys$output ""
$ monitor process/end="+00:00:03"/inter=1 /'query_string'
$ write sys$output "
"
$ exit
$eod
$ create apache$common:[htdocs]monitor.html
"http://www.w3.org/TR/html4/loose.dtd">
Monitor in AJAX
This example demonstrates using AJAX to show the output from the
MONITOR PROCESS command. The text directly below this will show the
standard MONITOR output with no data, scroll down and you should see
the MONITOR output with live data. The live data should refresh itself
every few seconds. Scroll down further to select another item to monitor
using the buttons.
stuff should appear here if your browser supports AJAX ...
$!
Peter Weaver
www.weaverconsulting.ca www.openvmsvirtualization.com
www.vaxvirtualization.com www.alphavirtualization.com
Winner of the 2007 OpenVMS.org Readers' Choice Award for
System Management/Performance