Forums Register Login

Urgent: Calling perl from Java

+Pie Number of slices to send: Send
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?
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 701 times.
Similar Threads
How to run .java file from Runnable
Running DOS commands from java file
Calling Perl from Java
launching .exe programs from java
Runtime class
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:42:20.