Changeset 4846 in /cluster/svnroot


Ignore:
Timestamp:
Aug 11, 2014 11:48:45 PM (6 years ago)
Author:
skylar
Message:

variable name fixes (#858)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.3.2/trees/bin/bccd-shutdown

    r4442 r4846  
    2020
    2121    # Iterate over all hosts that are not the head node
    22     for HOST in $(awk '$1 !~ /^node000/ {print $1}' ${TEMP_HOST});do
     22    for HOST in $(awk '$1 !~ /^node000/ {gsub(/:.*/,"",$1); print $1}' ${TEMP_HOST}) ; do
    2323        ( echo "Shutting down ${HOST}" && ssh ${HOST} "sudo /sbin/shutdown -h now" ) >&2 &
    2424    done
     
    3636
    3737    # Loop over nodes, failing if any of them respond
    38     for HOST in $(awk '$1 !~ /^node000/ {print $1}' ${TEMP_HOST});do
     38    # Strip out CPU annotations from MPICH2 and OpenMPI
     39    for HOST in $(awk '$1 !~ /^node000/ {gsub(/:.*/,"",$1); print $1}' ${TEMP_HOST}) ; do
    3940        if ping -qw 2 -c 1 ${HOST} > /dev/null; then
    4041            return 1
Note: See TracChangeset for help on using the changeset viewer.