next up previous contents
Next: Programmi MPI Up: Scripts di usability Previous: localantest.sh   Indice

launcher.sh

#!/bin/bash
. cluster.conf

if [ $# != 1 ] ; then
  echo "Usage: $0 \"[commands...]\""
   exit 1
fi

HOSTS=$( cat $DHCP | grep host | awk {'print $2'} )
for i in $HOSTS ; do
  echo ">> Launch in $i..."
  ssh $i "$1"
done



Mario Cavicchi 2004-07-22