Code: Select all
1% newlisp -http -d 19001
Code: Select all
2% newlisp -e '(net-eval localhost 19001 {(exec "ls")})'
I would have liked suggesting a fix, and perhaps it's sufficient to avoid entering batchMode=2 in the case of httpMode&&noPromptMode, but I'm not totally a par with all ramifications of that.
In any case, this really is a show stopper for using it as front-line http request handler.
EDIT: Possibly one can patch this by having an exiting reader-event handler:
Code: Select all
(reader-event (fn (s) (exit)))
Note that this has to be the very last thing on a server definition file.