2016. 3. 10. 16:31
#!/bin/sh
file=$1
cmd=$2
#cat $file | while read line; do
for line in $(cat $file);do
echo "### ssh $line $cmd ###"
ssh $line $cmd
done
'OS > Linux' 카테고리의 다른 글
| [Linux] ssh인증 오류 (0) | 2016.03.10 |
|---|---|
| [Linux] ashrock network 드라이버 설치 관련. e1000e-3.2.4.2 (0) | 2016.03.10 |
| [YUM] yum repository Local 참조 (0) | 2016.03.10 |
| [Redmine] Redmine Service File , linux service 등록 (0) | 2016.03.10 |
| [Linux] bash shell shock (0) | 2016.03.10 |