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

Re: [HTCondor-users] submit file double quoting issue



When condor_submit sees the value for your arguments begin with a ", then it switches to a different parsing mode that's designed to allow you
to supply " and ' characters inside your arguments.    So I think you want this.

arguments = “c:\data\program.pl -i c:\data\largedataset.dat --point=""2014-01-01 01:00:00"""

http://research.cs.wisc.edu/htcondor/manual/v8.3/condor_submit.html#man-condor-submit-arguments

-tj

On 8/27/2015 11:21 AM, Rita wrote:
Yes, but the program takes in a string for --point. So it will return an error. It need to be double quoted. 
x:\sub\tw.bat c:\data\program.pl -i c:\data\largedataset.dat --point="2014-01-01 01:00:00"


On Thu, Aug 27, 2015 at 11:49 AM, Krieger, Donald N. <kriegerd@xxxxxxxx> wrote:

Hi Rita – just a thought.

Have you tried enclosing the entire argument string in quotes without the escape characters?

  arguments = “c:\data\program.pl -i c:\data\largedataset.dat --point=2014-01-01 01:00:00"

 

 

Best regards,

 

Don

 

Signature0001

Don Krieger, Ph.D.

Department of Neurological Surgery

University of Pittsburgh

 

From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Rita
Sent: Thursday, August 27, 2015 11:36 AM
To: HTCondor-Users Mail List
Subject: [HTCondor-users] submit file double quoting issue

 

I have a windows bat script (tw.bat) like this,

 

@ECHO OFF

 

perl %*

 

 

When I run my code manually on the windows server I run it like this

 

x:\sub\tw.bat c:\data\program.pl -i c:\data\largedataset.dat --point="2014-01-01 01:00:00"

 

works!

 

 

And my submit file is like this,

Universe = vanilla

executable = x:\sub\tw.bat

arguments = c:\data\program.pl -i c:\data\largedataset.dat --point=\"2014-01-01 01:00:00\"

queue

 

it submits fine! But I get this error in my error file

The filename, directory name, or volume label syntax is incorrect.

 

I have tried many variations but all seem to fail or have condor_submit complain about double quoting/escaping

 

Any ideas?

 

 

 

--

--- Get your facts first, then you can distort them as you please.--


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/



--
--- Get your facts first, then you can distort them as you please.--


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/