Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COI was busy essentially writing the same reply as this, however, that is not really an answer to the question. Even if you create a script to do what you want (which is non-trivial because having your apache user be able to escalate itself to root is a very dangerous thing indeed) I'm not sure that you will get the behavior you want -- which is to have the system() call return. If that works ok, then you can do what Sam suggests with Ajax (perhaps embedded into the "Calculating" image by adding an anchor tag around it that kills the process.
      singulars
    2. COSo I tried your suggestion and created an AJAX request. However, my kill button still isn't working. The issue, it seems, is that until the program is finished the server doesn't respond to anything else from the user. Even if they try loading up a different page, it still just hangs waiting for the server. How I've gotten past this so far is by sending the kill command through the terminal myself. I was hoping the Kill button could do that instead of me, but it hasnt. Is there some way of having the program execute in such a way that the server doesn't have to wait for it to do anything else?
      singulars
    3. CO@MattS - You might need to separate the system into 3 scripts then - a generic UI page with a "start" button, which sends an ajax request to run the script, and a "kill" button, which sends an ajax request to the kill script.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload