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
posted 15 years ago
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"); ...