The SurpriseServer can be invoked from shell in deamon mode or in stdio mode; if none specified then is invoked in auto mode. The syntax is following:
surpriseserver [-D|--daemon] [-s|--stdio] [-h|--help]
The server starts listening on any nonused port; the number of the used port is reported to the user.
The server input is read from stdin and server responses to stdout.
If the server input is not a descriptor of a socket file then the server is launched in daemon mode, otherwise it is launched in stdio mode.