How to run a script on shut down

Ray Parrish crp at cmc.net
Thu Nov 27 03:40:20 UTC 2008


CLIFFORD ILKAY wrote:
> Ray Parrish wrote:
>   
>> LOL! Yes, that was quite a bit of information! Thank you! I like your 
>> last idea as it doesn't involve cron which I can't figure out how to use 
>> yet. [mostly due to laziness about looking for a better reference than 
>> the cryptic man page]
>>     
>
> apt-get install kcron
>
> Couldn't get simpler that, but you've been already told this and seem to
> have a penchant for doing things the hard way. :) And no, it doesn't
> matter if you use Gnome. KDE apps will run just fine on Gnome too.
>   
Hello again,

OK, OK! I give up and I've installed Kcron which seems a bit easier to 
use than crontab. I don't understand what all the minute buttons are for 
yet, but it has a help menu, so I'm sure I can figure it out.

One of the problems I see with using cron to start my script is that it 
provides no way to stop the calls to it without editing the cron 
entries. I'd rather set the script itself up with a stop command, and I 
also want to add in the ability to change the timeout interval between 
web site checks while the script is still running.

Another problem with using cron is that my script keeps running after 
the site I'm checking goes down, and tells me when it comes back up. I 
guess I could code it to do that from cron as well, but it's working 
pretty good right now. [it just told me my site is down, and I'm waiting 
for it to come back up after a quick call to tech support.]

Later, 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