Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Beyond a basic Oracle EXP/IMP shell script: Error Handling & Exit Status?

RE: Beyond a basic Oracle EXP/IMP shell script: Error Handling & Exit Status?

From: Allen, Brandon <Brandon.Allen_at_OneNeck.com>
Date: Thu, 18 Aug 2005 15:05:50 -0700
Message-ID: <04DDF147ED3A0D42B48A48A18D574C4502361471@NT15.oneneck.corp>


Make that " . . . returning the exit value . . . "  

I'd better slow down :-)

-----Original Message-----

From: Allen, Brandon
Sent: Thursday, August 18, 2005 3:04 PM
To: 'cmarquez_at_collegeboard.org'; Reidy, Ron; oracle-l_at_freelists.org Subject: RE: Beyond a basic Oracle EXP/IMP shell script: Error Handling & Exit Status?

Chris,  

The $? variable returns the exit code of whatever command was executed immediately before it. In your case, it is exiting the return value of the preceeding 'echo' command. You need to capture the value of $? immediately after the exp command.  

Regards,
Brandon

Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.

--

http://www.freelists.org/webpage/oracle-l Received on Thu Aug 18 2005 - 17:06:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US