Thank you!
I'd have sworn that I had tried it, because I tried all kind of
escaping and quoting, but perhaps it was just the combination I
forgot (Murphy's Law strikes again). Anyway, it works now.
The only point is that it doesn't allow any submission unless the
TAG environment variable is set, but that's not much of a problem,
since we have just set a default "empty placeholder" value for it
in our /etc/profile.
Regards,
Joan
El 12/06/13 00:19, Todd Tannenbaum escribió:
On
6/11/2013 4:28 AM, Joan J. Piles wrote:
Hello all,
We are trying to do a seemingly easy thing, but it has become
surprisingly difficult.
We want our users to be able to add an extra classad to their
jobs
(let's say it's a "tag"), and for their convenience we want this
tag to
be specified either through an environment variable or directly
in the
submit file, but with the submit file taking precedence. What we
have
tried (and did *NOT* work):
* Using a condor_submit macro in SUBMIT_EXPRS:
Tag = $(DOLLAR)ENV(TAG)
SUBMIT_EXPRS = $(SUBMIT_EXPRS) Tag
No need for a wrapper script.
You were close with the above attempt.
In your condor_config file put
# Note the use of double quotes below!
Tag = "$ENV(TAG)"
SUBMIT_EXPRS = $(SUBMIT_EXPRS) Tag
And now when your submit a job, by default you will get a job
attribute "Tag" with the value of environment variable TAG, but
can override in your submit file by doing:
+Tag = "override"
queue
regards,
Todd
_______________________________________________
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/
--
--------------------------------------------------------------------------
Joan Josep Piles Contreras - Analista de sistemas
I3A - Instituto de Investigación en Ingeniería de Aragón
Tel: 876 55 51 47 (ext. 845147)
http://i3a.unizar.es -- jpiles@xxxxxxxxx
--------------------------------------------------------------------------
|