/[escript]/trunk/run-escript.in
ViewVC logotype

Diff of /trunk/run-escript.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5267 by caltinay, Mon Nov 17 06:48:27 2014 UTC revision 5275 by caltinay, Thu Nov 20 01:27:04 2014 UTC
# Line 294  else Line 294  else
294              sort -u "${ESCRIPT_HOSTFILE}" > $HOSTFILE              sort -u "${ESCRIPT_HOSTFILE}" > $HOSTFILE
295              HOSTLIST=$(awk 'BEGIN{S=""}{if (S == "") { S = $0 } else {S = S "," $0}}END{print S}' "$HOSTFILE")              HOSTLIST=$(awk 'BEGIN{S=""}{if (S == "") { S = $0 } else {S = S "," $0}}END{print S}' "$HOSTFILE")
296    
297              NUM_HOSTS=$(wc -l "$HOSTFILE")              NUM_HOSTS=$(cat "$HOSTFILE" | wc -l)
298              if [ ! -z $ESCRIPT_NUM_NODES ]              if [ ! -z $ESCRIPT_NUM_NODES ]
299              then              then
300                  if [ $NUM_HOSTS -ne $ESCRIPT_NUM_NODES ]                  if [ $NUM_HOSTS -ne $ESCRIPT_NUM_NODES ]

Legend:
Removed from v.5267  
changed lines
  Added in v.5275

  ViewVC Help
Powered by ViewVC 1.1.26