I have a list of servers which I need to install a remote RPM on. I also need to trap stdOut to a text file so I know which ones failed or already had the RPM installed. Can you advise me how to approach this using a for loop in bash or running it as an .sh and calling the contents of the input servers file and the output echo file.?
I'm happy to even do it with Powershell from a Win Host if necesary.
$SERVERNAME in FILE1;
StdOut to File2 (I want to see if it is already installed or errors or sudo fails..)
use the following to stdIn:
sudo su –
“rpm -Uvh http://FQDN.packagename.noarch.rpm”
You guys Rock, thanks in advance!!