#!/bin/sh

HOSTS=`echo $LSB_HOSTS | /usr/bin/tr [:blank:] "\n" | /bin/sort -u -m`
echo "Hosts = $HOSTS"
echo $HOSTS > hostsList
CMD=`echo $1 $2 $3 $4 $5 $6 $7 $8 $9`
echo "command = $CMD"
nodesList=""

# node1
for i in $HOSTS
do
  lsgrun -p -m "$i" $CMD &
  nodesList="${nodesList} //$i/${i}Node1"
done
echo $nodesList > nodesList
echo local > localFileTag
sleep 5

# node2
for i in $HOSTS
do
  lsgrun -p -m "$i" $CMD &
done

# echo Copying files 
#copyFiles.sh 
     # 2> /dev/null

#!/bin/sh

HOSTS=`echo $LSB_HOSTS | /usr/bin/tr [:blank:] "\n" | /bin/sort -u -m`
echo "Hosts = $HOSTS"
echo $HOSTS > hostsList
CMD=`echo $1 $2 $3 $4 $5 $6 $7 $8 $9`
echo "command = $CMD"
nodesList=""

# node1
for i in $HOSTS
do
  /usr/local/lsf/bin/lsgrun -p -m "$i" $CMD &
  nodesList="${nodesList} //$i/${i}Node1"
done
echo $nodesList > nodesList
echo local > localFileTag
sleep 5

# node2
for i in $HOSTS
do
  /usr/local/lsf/bin/lsgrun -p -m "$i" $CMD &
done

# echo Copying files 
#copyFiles.sh 
     # 2> /dev/null

Complete path for lsgrun cmd
Complete path for lsgrun cmd


git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@222 28e8926c-6b08-0410-baaa-805c5e19b8d6
