well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this...
what i am trying is that there we can enter a username,server name and a password alongwith the script name from a java code .once you execute this java program ultimately your script gets executed.. it would be a lot of help to me..
Well its easy man,
You should be on a linux box for doing this.
Java has a Runtime class using which you can execute commands.
But in your case, what can be done is:
Process processObj = Runtime.getRuntime().exec("sh yourScriptName.sh");
Hope it helps.