slide 21 of 37


Simple rsh Run Script

#!/bin/sh
export RUNDIR=`pwd`
count=$NPROC
while [ $count -gt 1 ]
do
  count=$[$count - 1]
  eval 'PEname=$PE'$count
  rsh $PEname "cd $RUNDIR
  export IPROC=$count
  $@ </dev/null >/dev/null" </dev/null &
done
export IPROC=0
$@ </dev/null >/dev/null" </dev/null