Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

foreach question

52 views
Skip to first unread message

johannes falcone

unread,
May 17, 2013, 6:18:32 PM5/17/13
to
say i wana run something agaisnt 10,000 boxes

like an ssh command to find the ip

I can do ssh somebox "somecommnd"

if I put & done a the end of the loop, bash will run all 10,000 at same time, not 1 by 1

how can you do this in tcl?

in bash additionally, the results come back outa order...

can tcl do them all in parallel then return the original ordering?

thx

tomás zerolo

unread,
May 21, 2013, 8:31:24 AM5/21/13
to

johannes falcone <vispha...@gmail.com> writes:

> say i wana run something agaisnt 10,000 boxes
>
> like an ssh command to find the ip
>
> I can do ssh somebox "somecommnd"
>
> if I put & done a the end of the loop, bash will run all 10,000 at same time, not 1 by 1
>
> how can you do this in tcl?

Have a look here:

<http://wiki.tcl.tk/3543>

or here:

<http://wiki.tcl.tk/14734>

and follow the links.

HTH
-- tomás
0 new messages