I read Runtime.getRuntime().exec("perl script.pl")
is an option, but is this the best way to do it?
I'll need an answer from that script, so I'll have to read the script's return in some cases, although I might read it from a text file on other cases.
Anyway, is exec()
a good way of calling a Perl Script from Java? I should note, I'm working on a Java Web Application, so security is an issue here.