windows - Python: Pass a "<" to Popen -
i want start testrunner.bat of readyapi parameters. try pass xml parts (periodend in code below) arguments subprocess.popen:
argslist = ['c:/program files/smartbear/readyapi-1.9.0/bin/testrunner.bat', '-a', '-s', 'testsuite', '-c', 'testcase', '-f', 'c:/temp/', '-p', 'periodend=<periodend>2017-04-11t00:00:00.000z</periodend>', 'c:/temp/soapui-project.xml'] proc = popen(argslist, stdout=pipe, stderr=pipe)
this produces following error:
the system cannot find file specified.
i found out, "<" , ">" problems. how can escape them or pass them popen?
the escape character in cmd ^
.
c:\> echo asdf<123> syntax of command incorrect. c:\> echo asdf^<123^> asdf<123>
Comments
Post a Comment