This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The problem i am facing is that if I execute the command ./runpro ( name of my applications executable) from unix command prompt it is working ,also if i write the same command in a shell script it works on executing on the prompt with sh shellscript.sh where shellscript contains ./runpro
But if the same shell script is executed through the Runtime.getRuntime().exec("sh","shellscript.sh") function of java it compiles and when it is run it displays nothing as if nothing has happened . also directly executing the command through getRuntime().exec(" ./runpro") it is not working. However if execute getRuntime().exec("ls") it works fine.
Is there any limitation on exec for executing executing users executable or user created .sh.