Forum Moderators: coopster
So you'll need to look at the documentation for the program you're calling, or perhaps run it from the shell and see what it returns.
For example, the wait command suspends execution until a child process has exited. If you get a status code, it will be -1 on error, the process ID of the child process on success, or 0 if there is no child process and you called wait with the WHOHANG option.