batchtools icon indicating copy to clipboard operation
batchtools copied to clipboard

Specify username for Slurm

Open sklas opened this issue 6 years ago • 3 comments

Hi,

is it possible to specify a username for job submission to slurm? I would like to use different users on the slurm and the system where batchtools is running, but could not find an option for that.

Best, Steffen

sklas avatar Apr 11 '19 08:04 sklas

How would you do this without batchtools?

Do you want to login as a different user via ssh? Then you should be able to set your username as part of the nodename, e.g. [email protected] instead of ip.of.masternode.

mllg avatar Apr 11 '19 09:04 mllg

Yes, thats what I wanted to do. Thanks! Does this also work with all clusterfunctions? I've seen some calls to the $USER environment variable in the code, but don't know if called on the cluster or on the submitting system

sklas avatar Apr 11 '19 09:04 sklas

$USER should evaluate to the user on the remote machine. However, getting the quoting right is horrible, so I would not be surprised if you encounter any bugs here.

mllg avatar Apr 11 '19 12:04 mllg