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: [email protected]
> Subject: Running local process from within web application.
> Date: Mon, 23 Mar 2015 12:43:51 +0200
> To: [email protected]
>
> 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: [email protected]
> For additional commands, e-mail: [email protected]
>