The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 03-18-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Question What are you trying to accomplish?

Are you saying that there are common passwords for root and a generic user on over 600 of your servers? And, that you want to embed them in a script?

So, something like:


Code:
while read zf
  do
   rlogin $zf -l root
   echo "logged into $zf as root"
   rlogin $zf -l any_user
   echo "logged into $zf as any_user"
done < list_servers