check_sys_pass() { ###################################################### # This will read a .file for the system password # or prompt for a password ###################################################### export PWFILE=.syspasswd if [ ! -f $PWFILE ]; then echo "Please enter the SYS password on the primary database: $PRIMARY_DB on $PRIMARY_HOST :"; read sys_pass else sys_pass=$(cat $PWFILE |head -1) fi }