I have tried to write a nsh script that... * Runs an application. * Examines the application's return code. * Then runs one of several applications based upon the value of the return code.
The application return code seems to have an effect on $?, if I set the return code to 0 or 1, but if I set the return code to 2, $? never shows the 2. How can I store the application return code in a local nsh variable, so I can test it using if-then-else-fi? Regards, Bob