Skip to content

exit

Terminate kdb+

exit x    exit[x]

where x is a positive integer, terminates the kdb+ process with x as the exit code.

q)exit 0        / typical successful exit status
..

q)exit 42
$ echo $?
42

No confirmation is requested from the console.


.z.exit (action on exit)
Controlling evaluation, Debugging