while read HOST ; do ssh $HOST "ls -al" < /dev/null; done < servers
반응형
'프로그래밍 > shellscript' 카테고리의 다른 글
배열 반복문 출력 (0) | 2016.12.03 |
---|---|
쉘스크립트로 어제 날짜 가져오기 dateformat (0) | 2016.07.26 |
while read HOST ; do ssh $HOST "ls -al" < /dev/null; done < servers
배열 반복문 출력 (0) | 2016.12.03 |
---|---|
쉘스크립트로 어제 날짜 가져오기 dateformat (0) | 2016.07.26 |