2 javacflags
="-classpath ~/edu/doi/lab2"
9 echo "Usage: $0 <number of nodes> <node type> <first host> <second host>"
14 echo No parameters given.
19 echo No node
type given.
24 echo No first
host name given.
29 echo No second
host name given.
35 nodtypupcase
=`echo $2 | tr [:lower:] [:upper:]`
40 for ((i
=0;i
<$numberofnodes-2;i
+=2))
42 echo "java $javacflags "$nodtypupcase"Node `expr 9800 + $i` $secondhost `expr 9800 + $i + 1` &" >> $nodtyp.
$numberofnodes.
$firsthost.sh
43 echo "java $javacflags "$nodtypupcase"Node `expr 9800 + $i + 1` $firsthost `expr 9800 + $i + 2` &" >> $nodtyp.
$numberofnodes.
$secondhost.sh
46 echo "java $javacflags "$nodtypupcase"Node `expr 9800 + $i` $secondhost `expr 9800 + $i + 1` &" >> $nodtyp.
$numberofnodes.
$firsthost.sh
47 echo "java $javacflags "$nodtypupcase"Node `expr 9800 + $i + 1` $firsthost `expr 9800` L &" >> $nodtyp.
$numberofnodes.
$secondhost.sh