[wellylug] cgi script/html question

Mark Signal mark at databackup.co.nz
Mon Sep 6 14:06:32 NZST 2004


I'm googling myself around in circles here.....

Hopefully someone can point me in the right direction.

I have a cgi (bash) script that I want to a display results page for a
couple of seconds and then return to the originating page and refresh that
original page. As a second alternative just returning to the originating
page immediately after the script runs would do.

I can display the cgi results with no problem.

I can send myself off to another page after a time delay with this bit of
JavaScript:

<SCRIPT LANGUAGE=JAVASCRIPT><!--
setTimeout("top.location.href = 'http://address'",8000);//--></SCRIPT>

although I'm having trouble getting it to work from within a cgi script - I
suspect the "" marks are screwing it up:
echo "<SCRIPT LANGUAGE=JAVASCRIPT><!--"
echo "setTimeout("top.location.href =
'http://address'",2000);//--></SCRIPT>"

What I can't do is figure out to capture the originating web page address as
a variable so that I can replace the address in the JavaScript with the
variable of the origination page.


I can hopefully force a page refresh with: <META HTTP-EQUIV="Pragma"
CONTENT="no-cache"> in the html of the originating page.

any  thoughts/suggestions weblinks etc etc appreciated

BTW a few weeks ago I asked for input on disaster recovery software. Mondo
Rescue seems to be an ideal answer - it creates bootable menu driven ISO's
that make bare metal restores a 30 minute affair - all nice and apt-getable.


cheers


Mark


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 3/09/2004




More information about the wellylug mailing list