Sign in to follow this  
Followers 0
obrienj

Detecting that script has been cancelled/Killed

2 posts in this topic

I know I've seen this somewhere in the forums but I can't remember where, what it entails, nor can I come up with a search argument to find it.

Is there a way to determine from within a script that the script has been canceled or killed by the system or something else?

I'd like a way that, if this happens, my script can clean up.

Regards,

Jim

Share this post


Link to post
Share on other sites



you could put it under the case $GUI_EVENT_CLOSE

if the script gets a kill command (not a forced kill or a command) it will execute everything under this case statement

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0