dcsimg
How to call a shell script ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ali_Touzlatzki
Posted On:   Thursday, September 27, 2001 11:41 AM

Hi there,
I try to call a shell script within java. But nothing happens.

an abstract of my code :

String cmd = "sendMessage.sh";
try{
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(cmd);
}
catch(Exception ex){ex.printStackTrace();}

i need help !

About | Sitemap | Contact