全文検索:
- 09 SSH in While
- is will display only one line. <code> while read NAME HOST CMD do ssh $NAME@$HOST "$CMD" done </code> When you run SSH, stdin is directed at it, so the en... t stdin. ===== OK here ===== <code> while read NAME HOST CMD do ssh -n $NAME@$HOST "$CMD" done </code> {{tag>bash ssh while}}