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

Re: [Condor-users] filename including space



At 04:53 AM 10/8/2006, Kewley, J \(John\) wrote:
> output = \'lo op.out\'
> Submitting job(s)
> ERROR: The 'output' takes exactly one argument (\'lo op.out\')

Ah

How about

output='"lo op.out"'

output='\"lo op.out\"'

** Short answer:

Instead of putting
   output = lo op.out
in your submit file, put the following:
   +out = "lo op.out"
and I think it will work (note the plus sign at the start of the line, as well as the double quotes).

** Explanation:

My guess is this may just be an issue w/ condor_submit's "helpful" error checking being over zealous.

So as a workaround you could use the "+" syntax in condor_submit.

When you use the "+" at the start of a line in a submit file, condor_submit does not try to do any parsing or error checking on the line --- it instead just directly inserts the expression following the plus sign into the job classad. The good news about this is all of condor_submit's helpful (or harmful in this case) parsing is bypassed. The bad news is this means you must strictly adhere to classad's syntax, which basically just means that strings must be enclosed in double quotes. In addition, not all of the names in the submit file strictly match up with the attribute name in the classad --- for example, when you say
   output = whatever.out
in the submit file, condor_submit does some syntax and permission checking and then inserts the following into the job classad:
   out = "whatever.out"
So in the actual job classad, the attribute that controls where stdout goes is called "out", not "output". Check the manual or just do a "condor_q -l" to see the "real" job classad attribute names.

regards,
Todd



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Todd Tannenbaum                       University of Wisconsin-Madison
Condor Project Research               Department of Computer Sciences
tannenba@xxxxxxxxxxx                  1210 W. Dayton St. Rm #4257
http://www.cs.wisc.edu/~tannenba      Madison, WI 53706-1685
Phone: (608) 263-7132  FAX: (608) 262-9777