Top "Exit-code" questions

An exit code is signaled by a program on termination to indicate if it completed successfully, or, if it did not, what sort of failure condition occurred.

How to set the exit status in a Groovy Script

We have a Groovy Script that exits with a status of 0 when everything worked and a non-0 status for different …

unit-testing groovy exit-code
findstr exit codes/errorlevel

I have a program that is using findstr, and when the string is found the errorlevel returns 0 and when the …

cmd exit-code findstr errorlevel
All possible exit codes for cp

Looking at the man pages for cp, I only found that the command exits with 0 when copy succeeds with no …

linux unix exit-code cp
How to detect the status of msbuild from command line or C# Application

I am writing up a checkout, build and deployment application in C#, and need to know the best way to …

c# msbuild process exit-code
How to get the numeric exit status of an exited docker container?

When a container exits, docker ps -a shows its exit code (scroll $ docker run ubuntu bash -c "exit 1" CONTAINER ID …

docker exit-code
Stop fortran program with non-zero exit status

I'm adapting some Fortran code I haven't written, and without a lot of fortran experience myself. I just found a …

fortran exit gfortran exit-code
List of Windows application's exit codes

Where can I get the list of Windows application's exit codes?

windows exit-code
Apple LLVM compiler 3.1 error

Just updated Xcode to 4.3 and now I can't build my app. I'm getting this error: Command /Applications/Xcode.app/Contents/…

xcode clang exit-code
How to test os.exit scenarios in Go

Given this code func doomed() { os.Exit(1) } How do I properly test that calling this function will result in an …

testing go exit-code
Bash: One-liner to exit with the opposite status of a grep command?

How can I reduce the following bash script? grep -P "STATUS: (?!Perfect)" recess.txt && exit 1 exit 0 It seems …

regex bash grep exit exit-code