in reply to Re^3: Is it possible to execute some command in qx argument
in thread Is it possible to execute some command in qx argument

Sure I understand the concern. I agree fully that the script should be fixed and it is planned for the next release of the VM template. This VM template is produced internally by our development org and we are managing an internal cloud where we they want to spin up sessions off of this template. The problem is that this script will be only fixed in later versions of the template.

Anyway it appeared it was not that simple after all. The suggested approaches did work in command line, but when testing end to end I found out that all quotes and apostrophes were replaced with &aquot; and & apos;. The arguments are being passed in the vm through an xml, so I guess that's why they were converted. So unless there is a way to do the same without apostrophes or quotes, our script is safe :).
  • Comment on Re^4: Is it possible to execute some command in qx argument

Replies are listed 'Best First'.
Re^5: Is it possible to execute some command in qx argument
by Anonymous Monk on May 06, 2017 at 02:29 UTC

    So unless there is a way to do the same without apostrophes or quotes, our script is safe :).

    Um, so it doesn't know how to read XML in addition to not knowing how to shell quote/escape?

    yuck