Linux Server Monitoring - Schedule a Command Output to be Sent via Email on Boot 1

Linux Server Monitoring – Schedule a Command Output to be Sent via Email on Boot

Scheduling a command on boot it’s easy and it can be done with different ways. One, with cronjobs and second, with the rc.local file (/etc/rc.local). Third, by putting your own script in /etc/init.d/. Fow now I’ll take the easy way to do it, the one with the rc.local.

Requirements:


Implementation


Open terminal Ctrl + Alt + T, connect via ssh or just type

Add the command you want. For example…you can notify yourself when your machine is On

Or

When the machine is on shows you who rebooted the machine before.

Regards,
Specktator

Comment:

This site uses Akismet to reduce spam. Learn how your comment data is processed.