You can use exec command to run shell scripts/native code.
String shellscript = "/home/abcd/shellscript.sh
Process proc = Runtime.getRuntime().exec(
BufferedReader errorStream = new BufferedReader(new InputStreamReader(desktopP
BufferedReader inStream = new BufferedReader(new InputStreamReader(desktopP
proc.waitFor();
Now the shell script is run successfully. You can use inStream to read any output of shellscript and errorStream to read any errors in the shell script.
Main Topics
Browse All Topics





by: vpadmaPosted on 2000-11-02 at 07:43:28ID: 5053659
Try System.execute(name).
Padma.