I have a small HTTP server script that I wrote using eventmachine, which should call external scripts / commands, and does this with backticks ( `` ). When servicing requests that do not run reverse code, everything is fine, however, as soon as my EM code executes any reverse external script, it stops the execution of requests and stops execution altogether.
I noticed that eventmachine seems to be sensitive to subprocesses and / or threads and seems to have a popen method for this purpose, but the EM source warns that this method does not work under Windows. Many of the machines running this script are running Windows, so I cannot use popen .
Am i lucky? Is there a safe way to run an external command from an eventmachine script on Windows? Is there any way to run some commands that will be executed externally without blocking EM execution?
edit: the culprit who seems to bully EM, most often I use the Windows start command, as in: start java myclass . The reason I run the launch is because I want these external scripts to run and continue to work after submitting an EM request
source share