cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluating the return code from a CLIX command

richard_howard
Active Participant
0 Kudos

I'm running a CLIX command for repCheck with -E1. That means the check will fail (rc > 0) if there are any Fatal or NonFatal errors. I want to check the results and do one thing if it's a fatal error and another thing if it's a nonfatal error. Is that even possible? Or does the command only provide a single return code? Is there anything that writes to the standard error device that differentiates between what is fatal and what is nonfatal?

clix repCheck MDMHostSpec RepositorySpec Credential -E1 -D

RC=$?

case $RC in

0) echo "No errors in the Repository Check RC=$RC";;

1) echo "Errors were found RC=$RC";;

*) echo "Problems running the check RC=$RC"

esac

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Richard

You can get information about CLIX from "Console reference Guide" pages 285 to 298(Table 82):

https://websmp206.sap-ag.de/~sapidb/011000358700006291622006E

and from: http://help.sap.com/saphelp_mdm550/helpdata/en/8e/9f9c427055c66ae10000000a155106/frameset.htm

As i mean you cannot get result which you need