Exit Codes

Each time you execute tcsadmin, the script returns an exit code reporting success or failure of the particular command you just ran. The script also outputs a descriptive status message to stdout.

The exit code for success is always 0; the exit code for failure is a non-zero positive integer. Typically, the failure exit code is 1 if a single failure occurred. However, because some tcsadmin commands run against a tc Runtime group, the command might succeed for some tc Runtime instances in the group but fail for others. In this case, the exit code equals the number of failures.

The detailed reference information for each tcsadmin command includes the expected exit codes for that particular command.