I want to start a worker process on a different node with a certain niceness.
Basically, I want to prepend the command generated by addprocs(["mynode"])
with nice -19
.
As has suggested to me on Slack, there is the exename
keyword argument for addprocs. However, this seems to get Base.shell_escape
d and what I effectively get is cmd = `'nice -19 julia'`
instead of cmd = `nice -19 julia`
which will lead to a bash error (No such file or directory
).
Any ideas how to solve this?