DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Shell Scripting (http://www.daniweb.com/forums/forum113.html)
-   -   Running a script file from java (http://www.daniweb.com/forums/thread123664.html)

Raghavansat May 11th, 2008 9:51 am
Running a script file from java
 
Hi
I have written a script file which uses whiptail --inputbox to get an input and i want to execute this script from a java program... my java code is
 Process process = Runtime.getRuntime().exec("/path/../myscript.sh");

but when i run my java code the script is not running. The whiptail box is not appearing.. What should i do to run the script


All times are GMT -4. The time now is 12:47 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC