On Fri, 11 Mar 2011 02:24:43 -0800, Bjørn-Helge Mevik <[email protected]> wrote: > We are running slurm 2.2.3 on our cluster. > > We have a wrapper script for sbatch, and want all job submission to go > through that wrapper. One way to do that would be to set an environment > variable in the wrapper, and check that inside the lua job_submit plugin.
It would be interesting to know why you need an sbatch wrapper. Perhaps there is some other way to do what you need without using a wrapper script? (Maybe that is what you mean below?) mark > Is it possible to check environment variables in lua job_submit plugins? > > And is it possible to write a custom message out to stderr from the > plugin (to tell the user to use the wrapper)? > > Or are there better ways of achieving the same result? (We have > considered moving /usr/bin/sbatch away to a "secret" place, and place > our wrapper in /usr/bin/sbatch, but that makes upgrades error-prone.) > -- > Bjørn-Helge Mevik, dr. scient, > Research Computing Services, University of Oslo >
