Posted By:
Sandip_Chitale
Posted On:
Sunday, June 10, 2001 05:41 PM
Very basic -
try {
String[] kshCommand =
{
"/bin/ksh"
,"-c"
,"command"
,"command_arg1"
,"command_arg2"
};
java.lang.Process p = java.lang.Runtime.getRuntime().exec(kshCommand);
// deal with stdout, stdin and stderr of the child process using
// p.getInputStream();
// p.getOutputStream();
// p.getErrorStream();
// Now wait for the process completion
p.waitFor();
} catch (IOException ioe) {
}