in reply to Detect Stop Button

Perhaps you could make a stop button on a form then find away to kill the process if the stop button data is present at any point during fun time. Like a loop that keeps checking for the stop button data. You could break it down ito sections to that it checks after each step in the program.

Replies are listed 'Best First'.
Re: Re: Detect Stop Button
by hakkr (Chaplain) on Nov 26, 2001 at 22:11 UTC
    I was going to try that as well by writing the pid ($$) to a file when I start up. Thought it might be a bit dangerous though.
      I guess it's alway dangerous when your script is going to issue system commands. There has to be a semi-safe way though.