How can i execute a perl script from within my java programme. The script is designed to output a text file. i then want my program to read the file and display stuff. Thanks
Joined: Aug 26, 2001
I have never tried that but I think you could use the java.lang.Runtime.getRuntime().exec() method and passing the Perl interpreter and the Perl script as argument to that method. Something like: Runtime run = Runtime.getRuntime(); Process proc = run.exec("perl myscript.pl"); ...