The GetProgramExitCode method returns the exit code of
a registered program that was executed by the client using the SITE
EXEC command. By convention, most programs return an exit code in the
range of 0-255, with an exit code of zero indicating success. The exit
code is commonly used by custom programs to communicate status
information back to the server application.
Permission to use the SITE EXEC is not granted to authenticated
users by default, and is limited to only those programs which are
explicitly registered with the server. Exercise caution when allowing
a client to execute a program on the server because this can expose
the server to significant security risks. The programs that are
registered for use with the SITE EXEC command should be thoroughly
tested before being deployed on the server and should only be console
programs that write to standard output.