#!/bin/bash # Program: download.sh # Description: Download Oracle patches from Metalink<!--more- +-> PROGRAM=`basename $0` USAGE="Usage: $PROGRAM [ patch file ]"; if [ $# -lt 1 ] then printf "$USAGE \n"; exit 1; fi; patch=$1 username='com'; password='passcom' URL="http://updates.oracle.com/Orion/Download/" while [ -z $username ]; do echo -n "Enter metalink username: " read username done while [ -z $password ]; do echo -n "Enter metalink password: " stty -echo read password stty echo done wget --http-user=$username --http-password=$password --no-chec +k-certificate --output-document=$patch $URL exit;
In reply to How to convert a shell script to Perl? by venugopal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |