in reply to Re^6: Running perl from java
in thread Running perl from java
As long as I change "CQPerl" to "perl", your code works on my machine, happily printing out "Hello Elisheva".
I wonder if the issue is cqperl itself. This document suggests that cqperl (Clear Quest Perl by IBM/Rational Rose) is not designed to work as the standard Perl interpreter. http://www-01.ibm.com/support/docview.wss?uid=swg21265812 states that: cqperl is not a Perl interpreter of its own. It uses the $0 variable to determine which part of ClearQuest to run, but $0 is not set if called from the "shebang" line [ of a script. ]. I wonder if cqperl even knows what where to send the argument to "-e"? Is this a valid option letter for cqperl? The article goes on to say that you need to explicitly call "ratlperl" not "cqperl" in your shebang line. It also seems to assume that you've included "use CQPerlExt" as the first line in the script, though I'm guessing that is only necessary if you want to interact with the Clear Quest API in your script.
What happens if you replace "cqperl" with "ratlperl" in your command args array? Do you get a different result? I wonder if your script is working because it has the right shebang line, but that cqperl -e is failing because cqperl just doesn't know what to do with the "-e" option. What does your documentation say about cqperl and ratlperl command line arguments? Perhaps it is time to look at vendor forums? or make a support call?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Running perl from java
by abramia (Novice) on Jan 09, 2011 at 14:22 UTC | |
by Anonymous Monk on Jan 09, 2011 at 14:40 UTC | |
by ELISHEVA (Prior) on Jan 09, 2011 at 15:43 UTC |