Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: how to keep tracking the system command in cgi

by serf (Chaplain)
on Feb 10, 2006 at 12:07 UTC ( #529338=note: print w/replies, xml ) Need Help??

in reply to how to keep tracking the system command in cgi

If the user clicks the Stop button it will not stop the CGI script from running - it just stops the browser waiting for a reply from the webserver.

Once the CGI program is launched it's launched, it doesn't sit there waiting to see if the client still wants an answer - it just goes away and does its job and hands the results back to the webserver to pass back to the client when it's done.

There isn't any way for the user to stop the script from running - short of making another script specially for killing the first script (or some such functionality added to the first script).

  • Comment on Re: how to keep tracking the system command in cgi

Replies are listed 'Best First'.
Re^2: how to keep tracking the system command in cgi
by misterb101 (Sexton) on Feb 10, 2006 at 14:31 UTC
    Well there is a way of doing this (there's always a way of doing it! ;) But this would involve forking off the installation process and using IPC or another method to communicate with the forked process.
    Is this what you are looking for? if so, consult the 'perldoc perlfork' page. There is however a limitation when used on a non-linux system like windows that doesn't support the fork system call.

    Good luck!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://529338]
[Spenser]: I installed 5.22 with opkg. I can use it with cpan. I'm actually trying to install perl-DBD-mysql, but couldn't with it. So I went back to the factory version, 5.10.
[Spenser]: So, nevermind about CPAN. I give up on the downgraded angle. I'm back to fighting to install DBD.
[shmem]: please open a SoPW. At what point is the perl-DBD-mysql installation failing?
[shmem]: do you have the mysqlclient libs on that device, for instance?
[shmem]: and btw, your original questian is an XY Problem classic ;-)
[Spenser]: yes, I have mysql client libs installed.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2018-03-17 12:48 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (224 votes). Check out past polls.