I have to expose an application called "BLAST" as a set of web services. This application can be run by unix command lines such as "blastall -p blastn". So i thought of using java runtime class to execute the above command as follows:
... String ls_str[] = {"\bin\sh","-c","blastall -p blastn"}; File newFile = new File("\usr\local\blast"); Process ls_proc = Runtime.getRuntime().exec(ls_str,null,newFile); ...
The above code works fine as a java program but when i exposed it as a web service, it does not return any result.
Can someone please help me solved this problem. Thanks in advance.