Execute sinfo with bash shell

master
Mahesh Binzer-Panchal 2 years ago
parent 7d72e8d94b
commit 3a7f7f431e

@ -23,7 +23,7 @@ singularity {
def hostname = "r1"
try {
hostname = "sinfo --local -N -h | grep -m 1 -F -v CLUSTER: | cut -f1 -d' ' ".execute().text.trim()
hostname = ['/bin/bash', '-c', 'sinfo --local -N -h | grep -m 1 -F -v CLUSTER: | cut -f1 -d" "'].execute().text.trim()
} catch (java.io.IOException e) {
System.err.println("WARNING: Could not run sinfo to determine current cluster, defaulting to rackham")
}

Loading…
Cancel
Save