On Thu, 2016-04-07 at 17:15 -0400, Michael Stauffer wrote:
> For qsub, I already have a wrapper that I use to verify certain
> settings (created before I knew about JSV). In this, I could check if
> I'm on an exec host, and if so, create a state file in /tmp with the
> returned job id from qsub. Then when qsub is called again, if a state
> file exists with the current job id, I know I was initiated from an
> exec host and should deny the new qsub request.
Perhaps you could check the SGE_O_HOST environment variable in a prolog
script, and reject if it's not the head node.
I'm not 100% sure this would work - I've never tried such a thing
myself.
Cheers,
Chris
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users