How to run a script on shut down

Ray Parrish crp at cmc.net
Wed Nov 26 05:17:10 UTC 2008


Hello,

I have a script I've written which checks to see if my web site is down, 
and warns me when it isn't working. It depends on another script to stop 
it's inner loop, by deleting a file called go.txt from it's working 
directory in order to shut it down by stopping the loop.

I can start the web monitoring script from Preferences, Sessions by 
adding a call to it there, but I don't know where to put a corresponding 
call to the stop monitoring script so it will run when I log off, or 
shut down. I'd really like to find out, as this script does the final 
log file clean up for the application so I have to run it manually 
before I log off or it won't clean up the log files.

Anyone know how to do this?

Thanks, Ray Parrish

-- 
http://www.rayslinks.com/ Web index of human reviewed links.
<http://www.rayslinks.com/Troubleshooting%20and%20fixing%20Windows.html>
Trouble shooting and Fixing Windows
http://www.writingsoftheschizophrenic.com My poetry in web pages





More information about the ubuntu-users mailing list