cc_staff
284
edits
m (Fix the NODESLIST to cut out the domain name) |
m (Fix the pipe in the template) |
||
Line 349: | Line 349: | ||
|name=job_makecluster.sh | |name=job_makecluster.sh | ||
|lang="bash" | |lang="bash" | ||
|escape|mode=text | |||
|contents= | |contents= | ||
#!/bin/bash | #!/bin/bash | ||
Line 363: | Line 364: | ||
# If all processes are allocated on the same node, NODESLIST contains : node1 node1 node1 node1 | # If all processes are allocated on the same node, NODESLIST contains : node1 node1 node1 node1 | ||
# Make sure we cut the domain name and keep only the node name | # Make sure we cut the domain name and keep only the node name | ||
export NODESLIST=$(echo $(srun hostname | export NODESLIST=$(echo $(srun hostname {{!}} cut -f 1 -d '.')) | ||
R -f test_makecluster.R | R -f test_makecluster.R | ||
}} | }} |