Guest User

Untitled

a guest
Jun 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. while read i; do
  2. {
  3. /usr/bin/expect<<EOF
  4. spawn ssh "root@$i" dmidecode
  5. expect "Password:"
  6. send "xxxxr";
  7. interact
  8. EOF
  9. }
  10. done<iplist
Add Comment
Please, Sign In to add comment