Test the exit status, STDOUT or STDERR of an external command.