$ for f in system1 system2 ... systemn
> do
> ssh -t $f somecommand
> doneIt's a great, simple way to perform the same actions on many systems. If you have all your systems listed in a file, it's even simpler:
$ for f in `cat systemlist`
> do
> ssh -t $f somecommand
> doneBy the way, the -t option to ssh is appropriate for any command that needs a tty.

No comments:
Post a Comment