Indeed! Slot names are quite tricky for partitionable slot configurations as the name in the job ad refers to the parent partitionable slot (slot1), not the child dynamic slot (slot1_1). Here's a one-liner if you've been installing the python plugins: python -c 'print __import__("classad").parseOld(open(__import__("os").environ["_CONDOR_MACHINE_AD"]))["Name"].split("@")[0]' As in, $ condor_run python -c \''print __import__("classad").parseOld(open(__import__("os").environ["_CONDOR_MACHINE_AD"]))["Name"].split("@")[0]'\' slot1_2 This is going to always be a string attribute, so munging around in bash is probably also going to work. Enjoy! Brian On Dec 31, 2013, at 4:01 PM, Imre Pólik <imre.polik@xxxxxxxxx> wrote:
|