Thanks for the help. Shall try to check the client plugin option 1st else have to revert to the other alternative which, though more of a workaround, also looks good & promising. -Bhaskar. On Tuesday 29 October, 2024 at 06:49:12 am IST, Christopher Samuel via slurm-users <slurm-users@lists.schedmd.com> wrote: On 10/28/24 10:56 am, Bhaskar Chakraborty via slurm-users wrote:
> Is there an option in slurm to launch a custom script at the time of job > submission through sbatch > or salloc? The script should run with submit user permission in submit area. I think you are after the cli_filter functionality which can run plugins in that environment. There is a Lua plugin for that which will allow you to write your code in something a little less fraught than C. https://slurm.schedmd.com/cli_filter_plugins.html There is example Lua code for this here: https://github.com/SchedMD/slurm/blob/master/etc/cli_filter.lua.example All the best, Chris -- Chris Samuel : http://www.csamuel.org/ : Berkeley, CA, USA -- slurm-users mailing list -- slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-le...@lists.schedmd.com
-- slurm-users mailing list -- slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-le...@lists.schedmd.com