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

Re: [Condor-users] Injecting Job ClassAds





Steven Timm wrote:
On Mon, 10 Dec 2007, Doug Jacobsen wrote:

Hello Everyone,
I was curious if anyone knew how to inject a new Job Classad. Like I want
the job to know where it was submitted from. Thanks!

Doug

Doug--I think you mean a new attribute in an existing Job Classad,
don't you?

In any case, I do this by making a shell script to
wrap the real condor_submit binary.
In your case all the shell script would have to be is :

condor_submit_real -a "+SubmitHost = \"`hostname`\"" "$@"

where condor_submit_real is the real condor_submit binary.
The "-a" option of condor_submit is the trick.

You could also put the following in your condor config file:

MACHINE = "$(FULL_HOSTNAME)"
SUBMIT_EXPRS = $(SUBMIT_EXPRS) MACHINE