
# This script runs 4 instances of the worker 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.
# Each of the new processess will send its output to /tmp/ix file. 
# Make sure that you are allowed to use rsh on the remote computer
# and that rsh will be able find the executable file of worker.

#rsh 191.72.2.0 ~/dipc-1.0/examples/image/worker 0 2>/tmp/i0 &
worker 0 2>/tmp/i0 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/image/worker 1 2>/tmp/i1 &
worker 1 2>/tmp/i1 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/image/worker 2 2>/tmp/i2 &
worker 2 2>/tmp/i2 &

#rsh 191.72.2.0 ~/dipc-1.0/examples/image/worker 3 2>/tmp/i3 & 
worker 3 2>/tmp/i3 &

echo image_s: worker processes started
