Skip to Content
author's profile photo Former Member
Former Member

XI R3 Program Object doesn't read '\' in the argument

Hi,

The XI R3 program objects when initiated from CMC or SDK program, doesn't read '\' in the arguments passed. Its also noted that arguments after ; is getting totally ignored.

e.g.

Program Object = RunReport

Arguments = "Target= CALM\Outputs" "Value= 1010"

Then when printed in the program objects XI R3, its prints as

args[0] = "Target= CALMOutputs"

args[1] = "Value= 1010"

This was correctly read in XI R2 as

args[0] = "Target= CALM\Outputs"

args[1] = "Value= 1010"

I'm not sure what could go wrong here. I printed the arguments in the first line of Program Object itself.

Any suggestions?

Thanks,

Anu

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Oct 15, 2010 at 02:19 PM

    Try using two backslashes:

    "Target= CALM\\Outputs"

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2010 at 05:46 PM

    I can state that the behavior was changed with the XI 3.x version, since the auto-escaping that was done previously caused issues.

    So now the argument is placed without escaping directly in the command-line.

    So if your Program Server is on an Unix machine, the backslash "\" is interpreted as newline, and semicolon ";" is interpreted as return.

    Shell escapes

    "\\"

    and

    "\;"

    should work.

    Note that this does bring OS-dependency into the equation, but that's not necessarily bad, since the prior handling just didn't work across OSes at all, and now you have control.

    Sincerely,

    Ted Ueda

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.