Last active
September 24, 2015 18:47
-
-
Save jpiwowar-zz/792717 to your computer and use it in GitHub Desktop.
Download oracle patches from My Oracle Support using wget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: $?" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/ for more info and usage details.