#!/usr/bin/expect -f
set address "192.168.0.24"
spawn ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "root@$address"
expect "root@192.168.0.24's password:" {
    sleep 1
    send "raspberry¥r"
}
#
#aoe aoepoweroff aoereboot aoereset aoesshoff aoesshon aoestat
#
expect "Last login:*" {
    sleep 1
    send "aoepoweroff¥r"
    sleep 3
    send "aoestat¥r"
    sleep 3
    send "poweroff¥r"
}
##################################################
interact
  

 RSS2.0
 RSS2.0













 Y:
 Y:


Comments