
# This script runs 10 instances of the integrator program either in the 
# local machine, or in another computer, who's address should be given 
# in the rsh command. You should change the addresses according to your 
# system's configuration. 
# Make sure that you are allowed to use rsh on the remote computer
# (/etc/hosts.equiv) and that rsh will be able find the executable file of 
# worker.

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 0 0.0000001 &
integrator 0 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 1 0.0000001 &
integrator 1 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 2 0.0000001 &
integrator 2 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 3 0.0000001 &
integrator 3 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 4 0.0000001 &
integrator 4 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 5 0.0000001 &
integrator 5 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 6 0.0000001 &
integrator 6 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 7 0.0000001 &
integrator 7 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 8 0.0000001 &
integrator 8 0.0000001 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/pi/integrator 9 0.0000001 &
integrator 9 0.0000001 &

echo pi_s: worker processes started
