[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Parsing quoted arguments in Condor
- Date: Fri, 5 Dec 2008 02:09:44 -0000
- From: "Kewley, J (John)" <john.kewley@xxxxxxxxxx>
- Subject: Re: [Condor-users] Parsing quoted arguments in Condor
If you give up on the arguments syntax, you could maybe write a shellscript
that took the values you are giving it and construct them properly.
From: condor-users-bounces@xxxxxxxxxxx on behalf of Wei Wang
Sent: Fri 05/12/2008 01:42
To: Condor-Users Mail List
Subject: Re: [Condor-users] Parsing quoted arguments in Condor
I tried two cases:
#1. arguments = "-a a_value -b '""b_mod -b_op1 b_op1_value""'", two
double-quotes to escape the double-quote, a pair of single-quote to make
sure the whitespaces are part of the argument.
#2. arguments = "-a a_value -b '''""b_mod -b_op1 b_op1_value""'''",
suggested by J.K.
Both are leagal but both had the problem that "b_mod -b_op1 b_op1_value"
can't be parsed for "b_mod" further after the whole string is treated as one
argument for the main program.
According to the logfiles of the Condor jobs, it seems that Condor decides
to put in pairs of single-quotes: "b_mod' '-b_op1' 'b_op1_value", which
makes sure that the string "b_mod -b_op1 b_op1_value" is treated by Condor
as one argument, which is what we want. But this caused the problem of
parsing "b_mod -b_op1 b_op1_value" for the module "b_mod". We want "-b_op1
b_op1_value" to be the arguments of "b_mod" but Condor's single-quote pairs
It seems we are stuck......
Any ideas? Thanks.
On Fri, Dec 5, 2008 at 9:08 AM, Kewley, J (John) <john.kewley@xxxxxxxxxx>wrote:
> >> Do you mean: arguments = "-a a_value -b '""b_mod -b_op1 b_op1_value""'"
> > I tried the one you typed literally and Condor complained:
> I was going to suggest:
> arguments = "-a a_value -b '''""b_mod -b_op1 b_op1_value""'''"
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> The archives can be found at:
Department of Physics
University of Wisconsin - Madison