[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] condor_submit long argument list







From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Lee Gramling <leegramling@xxxxxxxxx>
Sent: Friday, February 26, 2016 7:11 AM
To: htcondor-users@xxxxxxxxxxx
Subject: [HTCondor-users] condor_submit long argument list
 
What are ways to pass a executable arguments to my submit description file?

I have a executable that takes a lot of parameters so I have tried to do something like this

condor_submit process.sub arglist="-process filename.01.json -x 1 -y 1 outfile.0101.json"
arguments = $arglist

I am having issues because I have put this in a python script that builds the command string and then calls os.system(cmd) and the quotes are getting lost even if I try to escape them
arglist=\"......\"

The number of arguments also are variable so I cannot just hard code in the submit 7 arguments,
but is there another way to just specify the arguments to condor_submit in the process.sub file
with $1 $2 or $args?
arguments = $(args)


I have looked through the examples and they all seem very simple but I am sure this is more common in the real world.


Thanks

Lee