Thanks Martin. Presumably though this would only run a process in the server, not the local machine. A second potential issue with using Runtime would be getting any response or output from the process.
Sent from my iPhone > On 23 במרץ 2015, at 13:56, Martin Gainty <mgai...@hotmail.com> wrote: > > > David- > > Runtime.getRuntime().exec("fubar.sh"); > I would launch this in a thread so as to not disrupt WebServer from receiving > requests/producing Responses > http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html > > in production you probably want to consider Message Queues Technologies such > as JMS/Quartz/MQSeries > create JMS message, publish your JMS Queued Message to JMS provider and let > JMS run it > http://docs.oracle.com/javaee/6/tutorial/doc/bncdx.html > > When building the war/ear and a Task is to be launched Jenkins PostBuildTask > is your best best bet > http://wiki.hudson-ci.org/display/HUDSON/Post+build+task > > HTH > Martin > ______________________________________________ > > > >> From: davidrfi...@gmail.com >> Subject: Running local process from within web application. >> Date: Mon, 23 Mar 2015 12:43:51 +0200 >> To: user@struts.apache.org >> >> Is it possible, and if so how, to run a local process (normally run from the >> command line), within a struts web application. >> Thanks >> >> Sent from my iPhone >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org