I am trying to find a way to connect to a list of servers written in a simple textfile to run one command and write the output to a file... The small problem is, I have to login with a password... but it would not a problem to paste the password into the script. the full command would be:
ssh "server_from_list.txt uptime | awk -F, '{sub(".*up ",x,$1);print $1}' >> /home/kauk2/uptime.out
lets assume the password is: abcd1234
Any suggestions??? I am not fit in scripting, sorry... Many thanks to you all in advance...
regards, Joerg