I am using a posix shell script to perform a nightly export of a specific schema in my database... I'm checking the exit status of the exp command, but am finding that I really want my messaging to indicate when the exp has completed successfully with warnings. The problem is that the numeric exit status for EX_OKWARN (success with warning) is the same as EX_SUCC (success).
The exit codes are: EX_SUCC=0, EX_OKWARN=0, and EX_FAIL=1. Is there any way to trap the exit code (string) rather than the exit number?
Thanks for any insight!
The exit codes are: EX_SUCC=0, EX_OKWARN=0, and EX_FAIL=1. Is there any way to trap the exit code (string) rather than the exit number?
Thanks for any insight!