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 -->
  #2 (permalink)  
Old 07-16-2008
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 669
While I see where your going with this, IMHO I would not. I would run the commands separately, if you messup 1 server with a bad script its eaiser to fix then running one command and killing all 23 or however many.

if you want to do it I would guess one way would be to create an array with all the servernames. then do a for each server in the array and call the commands/script.