[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] weird behavior -- commas and quotes in condor_submit arguments
- Date: Mon, 13 Aug 2007 11:47:27 -0500
- From: Dan Bradley <dan@xxxxxxxxxxxx>
- Subject: Re: [Condor-users] weird behavior -- commas and quotes in condor_submit arguments
Under Unix, I observe no trouble passing these arguments through.
Therefore, it appears that the problem is Windows-specific.
In Windows, Condor tries to produce command line arguments that will be
correctly interpreted by the Windows function CommandLineToArgv(). Not
all Windows programs use CommandLineToArgv() to parse their arguments.
I am not personally knowledgeable about whether batch scripts use this
function. I'll discuss with the Windows experts here.
The old-style arguments syntax in Condor is platform-specific. Under
Windows, it directly appends to the final command line whatever you
enter in the submit file (with the exception of backslashes in front of
double-quotes, which Condor strips off). Therefore, you could try
starting with the following old-style syntax and then adding escapes or
whatever you need to do in order to get the right effect:
arguments = \"myfunction('arg1','arg2')\"
Matthijs van der Meer wrote:
Help! I'd like to run a condor job with arguments that contain double
quotes, single quotes, and commas, but condor_submit is always able to
mangle my input beyond recognition. As a testbed, I run a batch file
that just echo's its input arguments, like so:
echo %1 %2 %3 ...
When I then submit the following:
executable = echo_inputs.bat
universe = vanilla
arguments = """myfunction('''arg1''','''arg2''')"""
I'm using the new style arguments formatting: the intention is to end up
HOWEVER, what actually gets run (the output of the echo batch file) is
(Note disappearance of comma, backslash insertion, and lack of double
double quote deletion.) As I understand it, this is not at all in
agreement with the condor_submit documentation at
Can someone shed light on this? I'm using 6.8.5 with all Windows machines.
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
You can also unsubscribe by visiting
The archives can be found at: