Created attachment 557743 [details] echo_args.js Description of problem: JON 3.0.1 RC#1 CLI Doc example 2.7 echo_args.js does not work Version-Release number of selected component (if applicable): JON 3.01 RC#1 How reproducible: 100% Steps to Reproduce: 1. follow the doc example 2. ./rhq-cli.sh -u rhqadmin -p rhqadmin 3. exec -f echo_args.js --args-style=named x=1, y=2 Actual results: rhqadmin@localhost:7080$ exec -f echo_args.js --args-style=named x=1, y=2 sun.org.mozilla.javascript.EvaluatorException: missing ) after argument list (<Unknown source>#2) in <Unknown source> at line number 2 ^ Expected results: working doc example Additional info:
12/30/2012 BZ triage meeting mfoley, ccrouch, loleary, asantos
I think the error was identified in bug 784887. I made the fix Marco specified and the script worked. One thing, is that -f apparently requires an absolute path to the script, not a relative path. So -f echo_args.js won't work, even if it is in the same directory as the rhq-cli.sh script. -f /path/to/echo_args.js does work. I'll update the docs for that.
Link: http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Operations_Network/100/html/Running_JON_Command-Line_Scripts/Running_the_CLI-Running_the_JON_CLI.html#Working_with_the_CLI-Script_Arguments
Closing.