[K12OSN] I miss RHN
Jeff Kinz
jkinz at kinz.org
Fri Aug 20 23:53:13 UTC 2004
On Fri, Aug 20, 2004 at 04:46:41PM -0700, Dan Young wrote:
...
> I'm tired of ssh'ing to every server to run yum to see if updates are
> available.
>
> #!/bin/sh
> # Run me in your crontab in the wee hours
>
> YUM="yum -d 0 -e 0" # be quiet
>
> if $YUM check-update &> /dev/null # if yum returns zero
> then # then
> : # do nothing
> else # else
> echo "updates for `hostname`" # tell me
> $YUM -C list updates # what updates are there?
> fi # done
Dan, I just wanted to congratulate you on implementing RHN from scratch
in only 7 lines of shell script! :-)
--
Linux/Open Source. Now all your base belongs to you, for free.
============================================================
Idealism: "Realism applied over a longer time period"
Jeff Kinz, Emergent Research, Hudson, MA.
More information about the K12OSN
mailing list