On Sun, Apr 15, 2007 at 10:00:38PM +0200, Ivo van der Sangen wrote:
> I am trying to send mail from rc.local to inform users about reboots. I
> wrote a script /root/reboot_notification containing the following:
> 
> #!/bin/sh
> for user in `/bin/cat /root/reboot_notification_users`; do
>         echo "$SERVER has rebooted at `/bin/date`" | /usr/bin/mail -s 
> "$server reboot" $user
> done

I do something somewhat similar.  Look for @reboot in crontab(5).

-ME

Reply via email to