Subject: Re: psh
To: None <current-users@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: current-users
Date: 10/19/1998 08:11:09
>> MAXKIDS=8

>> pfor i in `cat machinelist`
>> do
>> 	ssh -n $i "$@"
>> done

> What is wrong with:

> for i in `cat machinelist`
> do
> 	ssh -n $i "$@" &
> done

(1) As already mentioned, it makes no attempt to limit how many
children run at once.

(2) There's no way to wait for all of them to be finished, if the shell
already has other children backgrounded, without also waiting for those
other children.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B