clusterssh alternativa

Jan Friedel jf at devnull.cz
Wed Aug 26 14:51:57 CEST 2009


	Jasne, je tam chybka - mala oprava nize:

On Wed, Aug 26, 2009 at 02:47:22PM +0200, Jan Friedel wrote:
> On Wed, Aug 26, 2009 at 02:17:48PM +0200, Petr Macek wrote:
	.
	.

> 	serverset="serverA serverB .. serverZ"
> 	cmdset="ls /; ifconfig"
> 	for i in ${serverset}; do 
> 		ssh -l transport "${cmdset}"

	s/ssh -l transport "${cmdset}"/ssh -l transport ${i} "${cmdset}"/
	
> 	done
> 	
> 	Pokud potrebujes interaktivni komunikaci, pak treba neco ve
> 	smyslu:
> 
> 	serverset="serverA serverB .. serverZ"
> 	while read line; do
> 		for i in ${serverset}; do
> 			echo "-> ${i}"
> 			ssh -l transport "${line}"

	s/ssh -l transport "${line}"/ssh -l transport ${i} "${line}"/

> 		done
> 	done
> 

	/h.




More information about the Users-l mailing list