#!/bin/bash # Processes RedHat Errata and imports it into Spacewalk # Obtains the current date and year. DATE=`/bin/date +'%Y-%B'` # usernames and passwords export SPACEWALK_USER=XXXXXXXX export SPACEWALK_PASS=YYYYYYYY export RHN_USER=AAAAAAAA export RHN_PASS=ZZZZZZZZ # RHEL5-i386 /usr/local/sbin/ya-errata-import-new.pl --server taeps001.publix.com --channel rhel-32bit-server-5-updates --os-version 5 --publish --redhat --redhat-channel rhel-i386-server-5 --architecture i386 --startfromprevious month --debug