I am trying to use child process in nodejs to launch a tomcat server on local machine. It is am experiment that will help me understand the way child process works and will help with a project I am working on. I've been looking at the documentation here: http://nodejs.org/api/child_process.html but I am having a little of an issue actually doing this.
What I am trying to do is to run nodejs somewhere locally, once I click somewhere (or even launch the page), the page should run a tomcat server, make sure it is up then load the localhost:8080 welcome page. Once I close the page here the nodejs APIs are being called, it should shutdown tomcat (this part is not necessary for now, but just part of the experiment). Thanks!