This is the part of my script which does a shutdown....

Code:
orcl_sid=$1

run_sql () 				
{			
sqlplus /NOLOG <
Why doesnt this work, but yet shows in the output that the instance is shutdown?

Code:
SQL> SQL> SQL> SQL> SQL> Connected to an idle instance.
SQL> ORACLE instance shut down.
SQL> Disconnected