(Click to open topic with navigation)
To request a name space variable in a trigger
...Action="$HOME/myTrig.py $*.IPAddr"...
Each applicable name space variable is added to the argument list in the format <varName>=<val>
.
For instance, the example above would cause the script to run the following way:
> myTrig.py vc1.IPAddr=/tmp/dir1 vc2.IPAddr=/tmp/dir2 vc4.IPAddr=/tmp/dir3
Any other arguments provided here without name spaces will not change.
trigns
when you submit the job. Its value is a comma-delimited list of the desired name spaces. msub -l ... -W x="trigns=vc2,vc4"
If the new job is applied to the example in step 2, the script's arguments include vc2.IPAddr and vc4.Addr and exclude vc1.IPAddr. The script runs as follows:
> myTrig.py vc2.IPAddr=/tmp/dir1 vc4.IPAddr=/tmp/dir2