Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2005 19:54:48 -0200
From:      Gustavo De Nardin <gustavodn@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: boot up notification
Message-ID:  <200501141954.49243.gustavodn@gmail.com>

next in thread | raw e-mail | index | archive | help
Jim Pazarena wrote:
> I would like one of my servers to send me an email when
> it boots. I envision a script in rc.conf to do this.
> 
> Is there an easier way, or an automatic system which can do this?

  You could set up a cronjob to run at '@reboot':
$ crontab -l
@reboot echo | mail -s "The eagle has landed" root

  See crontab(5).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501141954.49243.gustavodn>