mllg / batchtools

Tools for computation on batch systems
https://mllg.github.io/batchtools/
GNU Lesser General Public License v3.0
171 stars 51 forks source link

force evaluation of environment variables on remote #175

Closed fouodo closed 6 years ago

fouodo commented 6 years ago

Hi Michel,

I always got this error when calling the batchtools::submitJobs function:

stop(simpleError(sprintf(...), call = sys.call(sys.parent()))),

until I figured out that the problem occurred in the makeClusterFunctionsSlurm function. That was due to the fact that the environment variables is not evaluated on the remote, but from local. For my case, the problem occurs because my local username differs from the remote one.

I identified the corresponding lines code in

I hope this could be helpful for the others users.

Best regards Cesaire

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 93.744% when pulling 1b99085b17ebeb7bb34104c09543d503c24cb95c on imbs-hl:eval_ssh_variables_on_reomte into 5c008ee9c8ef54bac0be2e373da74147d51ee657 on mllg:master.

mllg commented 6 years ago

Thanks. I only quoted the args for Slurm in 49e1a7549e3ccf7cc65723a0377d41fae4450880. All other cluster function backends do not support a SSH mode currently and thus need no quoting. If this works reliably I will patch the other cluster backendends as well.