NetXMS Support Forum

English Support => General Support => Topic started by: borislavl on March 05, 2010, 03:21:47 AM

Title: NXSL scripting
Post by: borislavl on March 05, 2010, 03:21:47 AM
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
Title: Re: NXSL scripting
Post by: Victor Kirhenshtein on March 05, 2010, 12:55:30 PM
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
Title: Re: NXSL scripting
Post by: borislavl on March 17, 2010, 07:45:40 PM
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