aspose file tools*
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: 18988
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do I have to use JNI to invoke Korn shell or perl script from java ?