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.

Exit code of variable assignment to command substitution in Bash

I am confused about what error code the command will return when executing a variable assignment plainly and with command …

linux bash shell exit-code
How to trap exit code in Bash script

There're many exit points in my bash code. I need to do some clean up work on exit, so I …

bash signals exit-code bash-trap
PL/SQL: is there an instruction to completely stop the script execution?

I'm trying to do some checkings on a DB schema at the beginning of a PL/SQL script. If the …

oracle plsql exit-code
Exit from a console application in C#

I read a lot of things here on stackoverflow, comments, opinions and every kind of ideas. But anyway, I really …

c# console exit exit-code
Can a batch file capture the exit codes of the commands it is invoking?

Basically, let's say that I have a batch file that calls myapp1.exe and myapp1.exe exits with Exit Code 1. …

batch-file exit-code
Where can I find the Windows Task Scheduler exit codes list?

All I have found about the Windows Task Scheduler results are short details about just a few codes. Does anybody …

windows scheduled-tasks exit-code windows-task-scheduler
Setting exit code in Python when an exception is raised

$ cat e.py raise Exception $ python e.py Traceback (most recent call last): File "e.py", line 1, in <module&…

python exception exit-code
Getting exit status code from 'ftp' command in linux shell

I need to retrive the exit status code from a command line program. No worries, I used $?. But for ftp, …

linux bash shell ftp exit-code
Why are my PowerShell exit codes always "0"?

I've got a PowerShell script as follows ##teamcity[progressMessage 'Beginning build'] # If the build computer is not running the appropriate …

powershell teamcity exit-code
How to get the exit status of a Java program in Windows batch file

Analogous to the $? in Linux, is there a way to get the exit status of a program in a Windows …

java windows batch-file exit-code