wood burning stoves 2.0*
The moose likes Servlets and the fly likes Urgent: Calling perl from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Urgent: Calling perl from Java" Watch "Urgent: Calling perl from Java" New topic
Author

Urgent: Calling perl from Java

Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Hi,
Does anybody knows how to invoke a perl script from java code?
If my java file and perl script is in same folder then calling perl like:
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("perl test1.pl");
is working fine but placing perl in different directory not working
like:
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("perl /abc/efg/test1.pl");
it is not giving any error or exception.
Any solution?


- Varun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent: Calling perl from Java
 
Similar Threads
Running DOS commands from java file
How to run .java file from Runnable
launching .exe programs from java
Runtime class
Calling Perl from Java