wood burning stoves 2.0*
The moose likes Java in General and the fly likes Do I have to use JNI to invoke Korn shell or perl script from java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Do I have to use JNI to invoke Korn shell or perl script from java ?" Watch "Do I have to use JNI to invoke Korn shell or perl script from java ?" New topic
Author

Do I have to use JNI to invoke Korn shell or perl script from java ?

Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
Do I have to use JNI to invoke Korn shell or perl script from java ?
is there any easy way to do that ?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18529
    
  40

How about using java.lang.Runtime.exec()?

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Jean-Francois Briere
Ranch Hand

Joined: Mar 03, 2004
Posts: 101
From Henry Wong:

How about using java.lang.Runtime.exec()?

... and to use Runtime.exec() appropriately, you must first read this article:
When Runtime.exec() won't
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Do I have to use JNI to invoke Korn shell or perl script from java ?
 
Similar Threads
invoking Korn shell scripts from a servlet
Pulling up File Permissions using Java API ???
what java API handles ftp download/uplaod ?
porting a .bat file to unix
How to use jave to do remote ftp, download, upload stuff ?