Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Steve Yu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22825
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about using java.lang.Runtime.exec()?

Henry
 
Jean-Francois Briere
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!