I have file and in this file i have this lines:
ssh email@example.com ssh firstname.lastname@example.org etc....
And i have script that i like to go on every server and execute the ls command on each of this servers that are on that file. What i did for now is:
while read line; do $line done < $1
and it work but for the first line, after that it return an
Pseudo-terminal will not be allocated because stdin is not a terminal. error.
So i know I'm missing something but I'm a little lost here.