View Single Post

  #1 (permalink)  
Old 06-21-2008, 06:43 PM
steve_f60 steve_f60 is offline
Junior Member
User
 
Join Date: Jun 2008
My distro: rh
Posts: 1
Rep Power: 0
steve_f60 is on a distinguished road
Default script to rm files on multiple servers

Hello All,

New guy to the " dark side " of command line and trying hard to improve/establish a decent bash scripting ability. Have a need for a script sooner than later so I thought I would call out for help.

I need to have a bash script that can rm a file from multiple servers if logged onto one. Is there an easy way to do this?

I am thinking that I need a variable list of server names to use in the script along with just a simple rm /filepath.

Wouldn't I have to somehow " log into" each server to do the remove?
Would the script have to include an ssh to each server in the variable list ?

Trying to think out loud for this....

Thanks in advance for the help,
Steve
Reply With Quote