Skip to content

jchieppa/yum_check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##########################

yum_check.pl script

##########################

INTRODUCTION

Perl script to run a yum list updates and email the contents to a defined email address

INSTALLATION

Copy the yum_updates.pl script to /usr/local/sbin or other preferred directory.

Add to your root user crontab a preferred interval. We run ours every Monday so we have the following in crontab

0 2 * * 1 /usr/local/sbin/yum_check.pl > /dev/null 2>&1

CONFIGURATION

Edit the script to define variables relevant to your installation. At minimum you need to set the following variables:

my $domain = "domain.com"; my $to_addr = 'email@$domain'; my $from_addr = "$host@$domain";

We check to make sure Yum isn't already running, If yum places it's pid file in a non standard location you may need to update the following variable:

my $pid = "/var/run/yum.pid";

About

Perl script to email a list of available updates from YUM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages