I was wondering how you can get the return status of a command which is run
within the context of su - <name> -c "<command>"
I am trying to find out the status of my command, but it always returns 0
su - dbsa -c "
even if the dbinfo command fails, it will print out 0. Is there any way to
get the actual return status?
Note if I "su - dbsa" on the command line, run the command and have it fail,
it will return a non-zero return code.