This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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