Get your CodeRanch badge!*
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 Java 8 in Action this week in the Java 8 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: 12682
    
    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


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i invoke a perl file using exec() in java
 
Similar Threads
Do I have to use JNI to invoke Korn shell or perl script from java ?
Invoke Java from Perl
Running perl through java
perl.exe thru java
unix2dos command in perl script