auto-exit pl/sql script from command line?

Giganews Newsgroups
Subject: auto-exit pl/sql script from command line?
Posted by:  hastenthunder (hastenthund…@yahoo.com)
Date: Mon, 26 Jan 2004

Hi,

I'm trying to run a pl/sql script from linux command line (Red Hat 9) as
follows:

    sqlplus username/password @ script.sql

The problem is, after the script gets executed I stay in sqlplus environment
(unless I have "exit;" in script.sql as the last line).
Is there any way to auto-exit from sqlplus after the script has been
executed?  Appreciate the help!

Thanks all

Gordon

Replies