diff options
Diffstat (limited to 'overlay/sys-cluster/beowulf-head/files/torque-add')
-rwxr-xr-x | overlay/sys-cluster/beowulf-head/files/torque-add | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/overlay/sys-cluster/beowulf-head/files/torque-add b/overlay/sys-cluster/beowulf-head/files/torque-add index 73d8957..01f251d 100755 --- a/overlay/sys-cluster/beowulf-head/files/torque-add +++ b/overlay/sys-cluster/beowulf-head/files/torque-add @@ -1,7 +1,7 @@ #!/bin/bash -TMP=/tmp/$0-$$ +TMP=/tmp/$(basename $0)-$$ NODES=$PBS_SERVER_HOME/server_priv/nodes echo $4 >> $TMP -cat $TMP | sort -g > $NODES - +cat $NODES $TMP | sort -g | uniq | egrep -v "(^$|^\W$)" > $NODES. +mv $NODES.$$ $NODES |