On Wed, 6 Apr 2005 15:22:33 +0100, you wrote:
On Wednesday 06 April 2005 14:46, Robert Rozman wrote:
Hi,
I wonder what is easiest way to notify system restart over email...
Thanks in advance,
regards,
Rob.
nice and easy is to put it in your crontab:
myhost> crontab -e (this opens up vi as your crontab editor, on a new line put: @reboot mail -s restarted me@myemail.com < /dev/null ) thats it, every time you reboot it will mail you
Hey Hamish, thanks! I never knew the @reboot capability in cron - useful trick! Mike- -- Mornings: Evolution in action. Only the grumpy will survive. -- Please note - Due to the intense volume of spam, we have installed site-wide spam filters at catherders.com. If email from you bounces, try non-HTML, non-encoded, non-attachments.