File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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