View Single Post

   
  #4 (permalink)  
Old 01-04-2008, 08:31 PM
Donald Thompson
 
Posts: n/a
Default Re: Control Multiple Servers

Buck Turgidson wrote:

>>I usually use something like this (untested and off the top of my
>>feverish head):
>>
>> #!/bin/ksh
>>
>> cmd=$1
>> shift
>> hosts=$@
>>
>> for host in $hosts
>> do
>> ssh -l $host $cmd
>> done
>>

>
>
> Thanks. Unfortunately, we don't have the ssh daemon running. Everything is
> telnet here.
>
>


Replace the ssh line provided in the script above with 'rsh $host $cmd'.
You'll need to have an appropriate .rhosts or /etc/hosts.equiv file
setup to allow passwordless logins.





Reply With Quote