Hallo,
ich bin weit gekommen, nur hier stört den noch irgendwas. Nur sehe ich keinen Fehler...
Sieht da jemand woran es liegt?
sqlcheck() { sqlplus –s /nolog << EOF ######Das ist Zeile 58 und angeblich der Fehler whenever sqlerror exit 3 connect $USER/$PASSWRD insert into table sampletable values \(‘abc’,123\); delete from table sampletable; commit; exit 0; EOF return $? } #Check if sqlcheck is successful or retry $SQLRETRY amount of times. exit with error 3 if not successful while [ i -lt $SQLRETRY ] do i=$[$i+1] sqlcheck() sleep 60 done exit 3 EOF #Zeile 84 #Zeile 85 gibt es nicht "next.sh" 84 lines, 2671 characters written root@pc$ sudo /bin/bash ./next.sh ./next.sh: line 84: warning: here-document at line 58 delimited by end-of-file (wanted `EOF') ./next.sh: line 85: syntax error: unexpected end of file