hello,
I am trying to refresh my web page which is created in bash script.
I have a HTML page which when press a button calls a bash script. this bash script created the same page with dynamic data.
When pressing the button I am calling to a function that set time out of 7 seconds and and after 7 seconds it should call a function that simulate a button click and this should refresh the page. But this does not work. any advise?
HTML Code:
HTML Code:
<!doctype html><html><head><meta http-equiv="refresh" content="10"><META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"></head><script>
function ClickRefresh()
{
window.top.location.reload();
document.getElementById("refreshbtn")[0].click();
}
function TimerRefresh()
{
window.setTimeout(ClickRefresh, 7000);
}
</script><body><form method="get" action="cgi-bin/createStatArea.sh" onsubmit="window.top.location.reload();" name="testStatusForm" ><div style="float:left; position:relative; width:250px; margin right:40px"><fieldset><legend><h2>Test status</h2></legend><textarea name="testStatus" id="testStatus" readonly>
Please select the tests and set test parameters.
</textarea><br><br><button id="refreshbtn" onclick="TimerRefresh()">REFRESH</button><br><br></fieldset></div></form></body></html>
BASH Code:
Last edited by Scrutinizer; 03-27-2016 at 12:29 PM..
Reason: code tags
Hi, I've been able to put together an HTML page that calls on a cgi program (via ksh) to do some server side processing, then send it back to the user's browser window. The script basically tails a log file and refreshes every # seconds (user chosen) by using the "refresh" meta tag (html).
My... (0 Replies)
Dear all,
I am calling a korn shell script(CGI script) by a web-page. This shell script do some checking in a unix file and return true or false. Now within the same script, If it returns true then I want to redirect to another web-page stored in htdocs directory.
Example: Login page sends a... (3 Replies)
Hi All,
Sorry to ask this question and i am not sure whether it is possible. please reply to my question. Thanks in advance.
I need a perl script ( or any linux compatible scripts ) to copy the graphical contents of the webpage to a word pad.
Say for example, i have a documentation site... (10 Replies)
I am working on an embedded linux router and trying to make a webpage where the user can input a desired number of CPE and have a script update that number on the router. I have a CLI where I can log in and type the following to change that number
echo "20">/proc/net/dbrctl/maxcpe which then... (7 Replies)
First, let me state that I am completely out of my realm with this.
I have a server running HPUX. I'm not even sure if this can be considered a UNIX question and for that let me apologize in advance.
I need to create a web page where a client can input 2 variables (i.e. date and phone number).... (0 Replies)
Hi folks ,
I need to display a message graphically using a messagebox or textbox through bash script. However the message should be keep changing every 4 secs . I input the message from a file and use "gxmessage" to display it .
gxmessage -nofocus -center -title "Welcome screen" -geometry... (3 Replies)
Hi,
I've been attempting to create a script that downloads web pages at random intervals to mimic typical user usage. However I'm struggling to link $url to the URL list and thus wget complains of a missing URL. Any ideas?
Thanks
#!/bin/sh
#URL List
url1="http://www.bbc.co.uk"... (14 Replies)
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)