Question

When specifying your destination queues for a Sun Grid Engine job submission, is it possible to negate multiple destinations?

Typically I will have something like:

#$ -q *@!chrom*

Which will run on every host/queue which doesn't match the pattern "chrom*". What if I wanted to run on every machine except for "chrom*" and "reef", for example? All the documentation I can find suggests that SGE should support this (they support ORs and multiple patterns), however all my attempts thus-far have met with failure.

Some things I've tried:

*@(!chrom*|!oryza*)
*@!chrom,*@!oryza*

(and so on).

Is there something simple I'm overlooking here? The best documentation I've found of their pattern matching is here, under "Matching Types": http://linux.die.net/man/1/sge_types

Was it helpful?

Solution

Something like the following should work: *@!(chrom|orzya|reef)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top