Posted to tcl by funa at Mon Dec 11 08:47:26 GMT 2017view raw
- #!/bin/bash
- PWD="$PASS"
- /usr/bin/expect - <<EOF
- set timeout -1
- spawn ssh -o StrictHostKeyChecking=no funabashi@$1
- expect "password"
- send -- "$PWD\r"
- send -- "\r"
- expect "$ "
- send "arp -ne\r"
- expect "$ "
- interact
- EOF