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: $?" | |
} |