This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
wood burning stoves
 
subject: how to execute shell script from java class
 
Similar Threads
Running a Java Class from a Unix Shell Script
how to execute shell script from java program
Java to Shell script
running java program from a shell script
Callling a Script from a java program