jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes How do i invoke a perl file using exec() in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How do i invoke a perl file using exec() in java" Watch "How do i invoke a perl file using exec() in java" New topic
Author

How do i invoke a perl file using exec() in java

sanjeev askjeev
Greenhorn

Joined: Oct 12, 2005
Posts: 5
How do i invoke a perl file using exec() in java
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
When you "invoke a Perl file" you exec the perl.exe interpreter with the command line parameters pointing to the perl script etc etc.
Be sure that you consume the resulting stdout and stderr output streams.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do i invoke a perl file using exec() in java
 
Similar Threads
unix2dos command in perl script
Running perl through java
perl.exe thru java
Invoke Java from Perl
Do I have to use JNI to invoke Korn shell or perl script from java ?