How to run a script on shut down

Ray Parrish crp at cmc.net
Thu Nov 27 03:56:51 UTC 2008


Erik Christiansen wrote:
> On Wed, Nov 26, 2008 at 08:57:26PM -0500, CLIFFORD ILKAY wrote:
>   
>> apt-get install kcron
>>     
>
> kIs kthere ka kneed kto koverspecialise kstandard kstuff?
>
> Ray, you'll normally find that cron is already installed.
> Since your application doesn't need to worry about what happens when the
> machine is off for a few days, you won't need to install anacron either.
> (At least that offers something not already there. ;-)
>
>   
>> 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.
>>     
>
> It can be simpler. Use the standard generic tool which is already there. :-)
>
> Erik
>
>   
Thanks Erik.  I've got the script working pretty good without using 
cron. My site was just down for about 15 minutes, and my script told me 
when it went down, and when it came back up. It was down for about five 
minutes earlier today too, so I'm going to get on my web host to find 
out why it keeps going down. [it's a windows server is why] 8-)

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