I want to execute different commands on different servers. Server addresses are in a text file. Commands are the same except a parameter related to their addresses. For example: ./run0 on the first server, ./run1 on the next, and so on. As I want to execute different commands I do not think that pssh and other parallel ssh related commands be useful.
Thanks in advance.
Sorry, may be I did not explained completely. There is a file named "server_ips" that has 10 lines, each line specifies an IP address. what I need is to connect to these servers and execute a command in each of them say "./run'i'" which i is the line number of the address in the file. Also, I want to see the result of each execution. So, I want 10 terminals to be opened and connect to 10 servers and execute a command on the server.