본문 바로가기
프로그래밍/shellscript

ssh로 여러 대 서버에 shell command 실행하기.

by 메이슨김 2019. 4. 11.

while read HOST ; do ssh $HOST "ls -al" < /dev/null; done < servers

반응형

'프로그래밍 > shellscript' 카테고리의 다른 글

배열 반복문 출력  (0) 2016.12.03
쉘스크립트로 어제 날짜 가져오기 dateformat  (0) 2016.07.26