Sometimes we want to enable our servers/desktops to be able to send email without setting up a full featured mail server or configuring postfix to route through Gmail.
Sending Email Alerts Through Cron
Cron is the Linux task scheduler that is responsible for making sure scripts run at their specified times. Cron is often used for things like, log rotation, backup scripts, updating file indexes, and running custom scripts. In the event a task runs into problems or errors Cron generally tries to email the local administrator of the machine.
Automatic updates in Centos
Running cron job on linux every 1 hours
How can I run command every 1 hour every day
0 */1 * * * /path/to/mycommand.sh
Change & Set the Default crontab Editor
For a one time edit, launch the terminal and type:
install less compiler with yum
redhat or fedora or centos distribution you should