I've been looking everywhere, and the posts suggest to pipe the echo exit | sqlplus @script.sql but my script contains PL/SQL statements, that take input, so as soon as the PROMPT message is outputted, the exit kicks in and the script exits.
Here's the linux call
alias sql 'sqlplus -s user/pass'
sql @test.sql
The script executes fine and does the INSERT in the DB, but then it just waits for me to type the exit once it executes.
Any ideas?