NXSL scripting

Started by borislavl, March 05, 2010, 03:21:47 AM

Previous topic - Next topic

borislavl

Hi Victor,

What is the escape symbol for NXSL?
I.e to escape quotation mark ". I've tryied backslash \, but didn't work.


Thank you,
Boris

Victor Kirhenshtein

Hi!

It is backslash, so

println "\"";

for example will print single quotation mark character. Maybe there are other error in your script?

Best regards,
Victor

borislavl

Hi Victor,

How we can escape the quotation marks in the Agent configuration file?
i.e. if quotation marks are used like
ExternalParameter = A1_CONN_S2S_A2:c:\netxms\bin\nxpush 192.168.2.2 -u pushuser -P pushpass -v A2:A2_INCOMING_ACK_S2S_A1=1 | find /c "Done."
(on windows server) in the agent configuration file the ExternalParameter does not work because of the quotation marks. I've tried with backslash "\", but not successful.


Thank you,
Boris