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

Re: [Condor-users] configure condor with environment vaiables



Hao,

I think it's a shell-escaping problem. I'm assuming you're using bash. When I run this:

export _condor_START=((Owner=="xxx")||(Owner=="yyy"))

I get "-bash: syntax error near unexpected token `('" which would explain why Condor complains about START not being defined. On the other hand, when I run this:

export _condor_START=Owner=="xxx"||Owner=="yyy"

It seems to work. Checking the actual value, though, gives this:

[~]$ echo $_condor_START
Owner==xxx

Which means START is defined for Condor, but to something that won't evaluate to true (at least not in the case you want). Try wrapping it in single quotes:

export _condor_START='((Owner=="xxx")||(Owner=="yyy"))'

That gives me this, which is what Condor needs to see:

[~]$ echo $_condor_START
((Owner=="xxx")||(Owner=="yyy"))

Regards,
Doug

-- 
===================================
Douglas Clayton
phone: 919.647.9648

Cycle Computing, LLC
Leader in Utility Supercomputing
http://www.cyclecomputing.com

On May 14, 2012, at 6:19 AM, Hao Liu wrote:

Hi Matt,

Thanks for the explanation. However,
export _condor_START=((Owner=="xxx")||(Owner=="yyy")) did Not work, still have the error of "required attribute START is not defined".
I also tested export _condor_START=Owner=="xxx"||Owner=="yyy" (note with brackets removed), it could start the daemon, but it did not accept any jobs either from xxx or yyy.

The only two worked fine until now are:
export _condor_START=true
export _condor_START_owner="xxx"

Any idea? Thanks.

Hao


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

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