The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #1 (permalink)  
Old 07-16-2008
Moxy Moxy is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 14
Adding ssh commands to a shell script

I have written some scripts that do a few admin tasks on 23 servers I manage.
Usually I execute these scripts from one server by running ssh commands remotley, i.e.
ssh root@server2 shellscript, ssh root@server2 shellscript & so on..

It works fine but I want to improve this by writing a script on my main server to run all the scripts on the other 23 servers.

Opinions on whether this is a good idea or not would be great & advice on how to implement it effectively would be great.