For batch jobs, a job_submit plugin will work. http://slurm.schedmd.com/job_submit_plugins.html
Quoting Yair Yarom <[email protected]>:
Hi,
Is there any way to change the working directory using a prolog script
or through a spank plugin (or by any other means)? I need something that
runs during the submission phase, not on the remote side. Basically I
want to set the "-D" option if it's not set by the user.
Thanks,
Yair.
