Check for available patches in Ubuntu via cron

I have been thinking about writing a small script that checks if there are available patches for my machines for a long time. Never got around to do it until today and it proved to be easier then I thought.
Just add the following script to your cron-tab and the system will send you email when there are patches available for your system.

If you want to send the cron email to a external account just add the following to the cron-tab of the user.

This has been verified and tested on Ubuntu 12.04.2

Leave a Reply

Your email address will not be published.