On 02/26/2016 04:04 PM, Todd Tannenbaum wrote: > i.e. use the single quotes to denote a literal string, which will then > preserve your double quote characters. At least this should work from > a Bash prompt, cannot say if Python os.system() is munging anything else. Can't speak for os.system() but subprocess.Popen() will pass the arguments to exec(3) the way you tell it to: ["/usr/bin/condor_submit","process.sub", 'arglist="-process filename.01.json -x 1 -y 1 outfile.0101.json"'] (3 arguments) vs ["/usr/bin/condor_submit","process.sub","-process","filename.01.json", "-x","1","-y","1","outfile.0101.json"'] (9 arguments). -- Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
Attachment:
signature.asc
Description: OpenPGP digital signature