-
bizna
-
RE: How do I send email on shutdown or reboot
-
You can simply put a small script that takes the time, and send you an Email with either 'boot' or 'shutdown'.
Put it in the relevant rc's, and that's it.
For example, a simple 'boot' script can be:
[code]#!/bin/bash
mail -s "boot at `date`" you@yourdomain.com
[/code]
Plain, simple. Leave the hassle for other folks.
Good luck!
Dotan
-
01 Jul 09
You can simply put a small script that takes the time, and send you an Email with either 'boot' or 'shutdown'.
Put it in the relevant rc's, and that's it.
For example, a simple 'boot' script can be:
#!/bin/bash
mail -s "boot at `date`" you@yourdomain.com
Plain, simple. Leave the hassle for other folks.
Good luck!
Dotan