Two Laptop Bag*
The moose likes Java in General and the fly likes how to execute shell script from java class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to execute shell script from java class" Watch "how to execute shell script from java class" New topic
Author

how to execute shell script from java class

Ritu Pande
Greenhorn

Joined: Jun 05, 2005
Posts: 17
hi,

is it possible to call the unix shell script from the java program. i m looking for example of such kind program.

thnx in advance

regd,
Ritu
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have a look at the various Runtime.exec() methods.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ritu Pande
Greenhorn

Joined: Jun 05, 2005
Posts: 17
hi paul,

thanks a lot for the reply. its working


warm regards,
ritu
 
Don't get me started about those stupid light bulbs.
 
subject: how to execute shell script from java class