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.

-- 
FreeBSD mailing list (users-l@freebsd.cz)
http://www.freebsd.cz/listserv/listinfo/users-l

Odpovedet emailem