A couple days ago I shared my script for OpenSuSE. Now I've re-written that Perl script to speak the language of yum. The script below is intended to run periodically by cron and to send me an e-mail, if new updates have been found for the system. It's nothing extraordinary, yum-cron can this too. But an advantage of my Perl script is that the e-mail is sent only once. No email is sent, if the same updates are found again. The trick is that the Perl script saves the updates (if any) in a temporary file to compare its content then with the updates found at the current run.
Besides I wanted to see the installed and the available versions of a package side by side. I could unfortunately get this output with yum or repoquery directly.
Showing posts with label script. Show all posts
Showing posts with label script. Show all posts
Script to inform about new updates in OpenSuSE
Some time ago I wrote a script that informs me via e-mail, when zypper finds new updates. Now I'd like to share the script (actually there are two scripts: a main Perl script and a Shell script as wrapper).
An advantage of my script is that it informs you only once, if there are new updates and not every time you start it. It is achieved due to the storing the last result in the file system. The next time you'll get an e-mail is, when the script finds a newer update as found before.
An advantage of my script is that it informs you only once, if there are new updates and not every time you start it. It is achieved due to the storing the last result in the file system. The next time you'll get an e-mail is, when the script finds a newer update as found before.
Eingestellt von
Unknown
Saturday, March 10, 2012
01:31
Subscribe to:
Posts (Atom)