Skip to content

Instantly share code, notes, and snippets.

@jpiwowar-zz
Last active September 24, 2015 18:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpiwowar-zz/792717 to your computer and use it in GitHub Desktop.
Save jpiwowar-zz/792717 to your computer and use it in GitHub Desktop.
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: $?"
}
@jpiwowar-zz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment