how to run multiple process at the same time

Hello guys,

Look what im doing:

I need to run a process from a SERVER1 to SERVER2, SERVER3 and SERVER4.

The shell of the process is in each SERVER (2 to 4)

So from SERVER1 i do:

for i in SERVER2 SERVER3 SERVER4
do
rsh $i '
./process.sh
'
done

The problem is: each process.sh takes around 30 minutes so i have to wait 90 minutes to take the final result, my question is, how i can run the process.sh in the SERVER2, SERVER3 and SERVER4 at the same time? and i have to wait only 30 minutes?

Add the -n option to rsh redirect its stdout to a file or /dev/null and put it in the background.

for i in SERVER2 SERVER3 SERVER4
do
    rsh $i -n '/path/on/remote/server/to/process.sh' > /dev/null &
done

Thanx that really works