Skip to content

Instantly share code, notes, and snippets.

View MarisElsins's full-sized avatar

Maris Elsins MarisElsins

View GitHub Profile
@jpiwowar-zz
jpiwowar-zz / getOraPatch.sh
Last active September 24, 2015 18:47
Download oracle patches from My Oracle Support using wget
# Function to retreive patches from Metalink/My Oracle Support via wget
function getOraPatch {
[[ $mosUser ]] || read -p "Oracle Support Userid: " mosUser;
[[ $mosPass ]] || read -sp "Oracle Support Password: " mosPass;
fname=`echo $1 | awk -F"=" '{print $NF;}'`;
wget --no-check-certificate --http-user $mosUser --http-passwd $mosPass $1 -O $fname -nv;
echo "Completed with status: $?"
}