#!/bin/ksh echo "Please enter password for user HAJO: \c" stty -echo read s_pw_hajo export s_pw_hajo stty echo echo s_user_check=`sqlplus -s hajo/${s_pw_hajo} <<-EOSQL | grep ORA-01017 | sed 's/ORA-01017//;s/[ ]//g' EOSQL` if [ "$s_user_check" = "" ] then echo "gut gemacht" else echo "vertippt" fi exit