bug fix for --os-shell on Windows (echo ... > requires double quotes if the piped filename contains whitespace, otherwise doesn't hurt)

This commit is contained in:
Miroslav Stampar 2012-02-15 11:14:01 +00:00
parent 35fa214a1e
commit edeb4b6113

View File

@ -114,7 +114,7 @@ class xp_cmdshell:
self.getRemoteTempPath()
tmpFile = "%s/tmpc%s.txt" % (conf.tmpPath, randomStr(lowercase=True))
cmd = "%s > %s" % (cmd, tmpFile)
cmd = "%s > \"%s\"" % (cmd, tmpFile)
self.xpCmdshellExecCmd(cmd)