aspose 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 JavaScript Promises Essentials this week 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to execute shell script from java class