Exit
Exit[]
terminates a Wolfram Language kernel session.
Details
- Exit can be used as a shortcut for Exit[] if it is the entirety of the input expression.
- Exit[] terminates the kernel session even if called from within Dialog.
- Before terminating a kernel session, the Wolfram Language executes any delayed value that has been assigned to the global variable $Epilog. Conventionally, this attempts to read in, using Get, the package file end` that contains commands to be executed before termination.
- On most computer systems, Exit[n] can be used to pass the integer exit code n to the operating system.
- On systems that support exit codes, Exit[] is equivalent to Exit[0].
- The Wolfram Language kernel uses the following exit codes when it quits automatically:
-
0 normal exit 1 an internal error occurred 2 an attempt to start the kernel via WSTP failed 3 the kernel quit from the interrupt menu - The Wolfram Language kernel uses exit codes between 60 and 85 when startup failed due to license restrictions. Most of these failures refer to a problem with a password entry found in $PasswordFile. Common values include:
-
60 the network license server cannot give licenses for this product 61 network license limit reached 62 invalid activation key/password combination 63 expired password 70 no password file found 71 unable to connect to network license server 72 password file empty 73 password file has empty password entry 74 password file has truncated password entry 75 network license server can only authorize older versions of the product 78 invalid activation key entered 81 the network license server instructed the kernel to terminate 82 the network license server refused to give a license 84 the network license server refused to give a license due to a configured restriction 85 single-machine process limit reached - Exit[…] is a synonym for Quit[…].
Examples
Wolfram Research (1988), Exit, Wolfram Language function, https://reference.wolfram.com/language/ref/Exit.html (updated 2020).
Text
Wolfram Research (1988), Exit, Wolfram Language function, https://reference.wolfram.com/language/ref/Exit.html (updated 2020).
CMS
Wolfram Language. 1988. "Exit." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/Exit.html.
APA
Wolfram Language. (1988). Exit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Exit.html