On 09:24 14 Jun 2003, Dadi <[EMAIL PROTECTED]> wrote:
| I need to launch a command, simultaneously, on several 'Nix servers from
| a remote computer runnig RH; the number of the servers is quite big so
| to telnet or ssh in each one of them is not the way to do it ... ; is
| there any way that I can do that on a single line of command ?? (the
| command must log me in [start a tty I guess ..], do the thing that I
| want and them log me off (encryption is not an issue so I don't
| necessary need ssh)). Once I know the command I can write a small script
| that can do the job whenever I want by using cron ....
Why not just loop over the servers?
while read host
do ssh $host 'command ...' &
done <list-of-servers
I do a variant on that regularly at work.
--
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/
The face of a child says it all, especially the mouth part of the face.
- Jack Handey
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list