The child_process module launches the children with piped stdout and
stdin, and most processes will exit when they try to write to or read
from a broken pipe (is your spawned app printing something to
stdout?). I don't know of any existing module to launch children
unpiped, but it might not be too hard to make one.
Alternatively, have node launch a process that then launches your
child process detached (On Linux, something like 'screen -dmS foo java
-jar myapplication.jar' or 'gnome-terminal --execute java -jar
myapplication.jar', on Windows 'cmd /c start "foo" "java -jar
myapplication.jar"'). This has the (possibly desirable) side effect
of creating a visible/accessible terminal/console window for the newly
spawned application.
On Mar 1, 7:47 am, Ben Noordhuis <
i...@bnoordhuis.nl> wrote: