[OE-core] [RFC PATCH v2 3/8] lib/oeqa/utils/sshcontrol.py: helper module for running remote commands

Colin Walters walters at verbum.org
Sun Jul 7 21:55:31 UTC 2013


On Fri, 2013-07-05 at 12:27 +0300, Stefan Stanacar wrote:

> +        actualcmd = "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -l root %s '%s'" % (self.host, cmd)

This is going to fail if cmd contains a single quote.  Personally, I
*always* pass around subprocess arguments as an array.  Anything else is
going to lead to quoting problems.






More information about the Openembedded-core mailing list