All HowTo's Cyber-Security Scripting in Bash

Email the SysAdmin a list of Available Updates daily

This is a one-liner to periodically send an email to the administrator with a list of available packages.

/usr/bin/yum check-update | mail -s "Yum Updates Available - `hostname`" [email protected]

You can put the above in a Cron job to have it report the list every day or whatever frequency you like.

Leave a Reply

Your email address will not be published. Required fields are marked *