Using Java's runtime.exec(cmd) to run a perl string on HP-UX unix then getting the error
Can't find string terminator "'" anywhere before EOF at -e line 1.
The perl script I'm testing with is:
perl -e 'print "Hello World \n"'
It works from the Unix command line. Tried a number of escape variations and tried using qq
, like perl -e 'print qq{Hello World \n}'
without success.
Any other suggestions?
Thanks