http://www.perlmonks.org?node_id=711042


in reply to Re: Mirror RHN channels for legal subscriptions behind firewall
in thread Mirror RHN channels for legal subscriptions behind firewall

Indeed, you can basically replace this whole script with:

reposync | mail -s 'reposync downloaded new packages' foo@bar.com

www.jasonkohles.com
We're not surrounded, we're in a target-rich environment!