Menu

"&" character in action type=shell-cmd

Help
2008-10-14
2012-12-14
  • Harry Hirsch

    Harry Hirsch - 2008-10-14

    Hi,

    I want to use an CMD call like this:

    <action type="shell-cmd" cmd="wget http://1.1.1.1/admin/cgi-bin/ipc_send.cgi?cmd=show_list&args=Test"/>

    But when I start linknx not as a daemon I see in the command prompt that the "&" character isn't shown.

    Should I have to use another Charset or what can I do ?

    Thanks.

    Regards.

    Daniel

     
    • jef2000

      jef2000 - 2008-10-15

      Hi,

      In XML attribute values, some special characters like '&' and '<' must be escaped. You need to replace '&' by '&amp;'.
      More details can be found in section "Entity references" of:
      http://en.wikipedia.org/wiki/XML

      Regards,

      Jean-François

       

Log in to post a comment.