Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] odd behavior of condor_qedit
- Date: Tue, 14 Apr 2026 13:03:46 -0500 (CDT)
- From: Todd L Miller <tlmiller@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] odd behavior of condor_qedit
It seems that with condor_qedit I can set an ad to the string "123" (or any
numeric
I tried) but whenever I try an alphabetic string, I get undefined.
What am I doing wrong ?
Looks like a shell quoting problem to me:
tlmiller@azaphrael:~/Work/condor/test$ condor_qedit 1006.47 foo=123
Set attribute "foo" for 1 matching jobs.
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af foo
123
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af 'foo + 1'
124
tlmiller@azaphrael:~/Work/condor/test$ condor_qedit 1006.47 foo="123"
Set attribute "foo" for 1 matching jobs.
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af foo
123
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af 'foo + 1'
124
tlmiller@azaphrael:~/Work/condor/test$ condor_qedit 1006.47 foo="bar"
Set attribute "foo" for 1 matching jobs.
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af 'foo + 1'
undefined
tlmiller@azaphrael:~/Work/condor/test$ condor_qedit 1006.47 bar=7
Set attribute "bar" for 1 matching jobs.
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af 'foo + 1'
8
tlmiller@azaphrael:~/Work/condor/test$ condor_qedit 1006.47 foo='"bar"'
Set attribute "foo" for 1 matching jobs.
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af 'foo'
bar
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af 'foo + 1'
error
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af 'strcat(foo, "s")'
bars
tlmiller@azaphrael:~/Work/condor/test$ condor_qedit 1006.47 foo=bar
Set attribute "foo" for 1 matching jobs.
tlmiller@azaphrael:~/Work/condor/test$ condor_q 1006.47 -af 'strcat(foo/2, "s")'
3s
-- ToddM