On 01 Jan 19:14, Chris G wrote:
I want to implement a link to a CGI script that, when you click on it, does nothing to the currently displayed page. I.e. I want the existing page to continue to be displayed when I click on the link (and as a result of course the CGI script executes).
Actually even more perfect *might* be to force a redisplay of the current page as the CGI script will (hopefully) modify the page.
This sounds as if it must be something one often wants to do but being naive as regards HTML/CGI I don't know how to do it.
It's not something you'd generally want, if you really wanted to stay on the current page the current method would be an AJAX call out instead, but that relies on javascript. I'd be tempted, if it's a long running cgi, to double fork it away from the webserver, run it in the background with a known path to it's control, and make the front end cgi check the status of the running process occasionally.