/ PCの電源OFFは気を使うんだよね(笑)

PCの電源OFFは気を使うんだよね(笑)

#!/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

— posted by くま at 11:41 am  

この記事に対するコメントはありません

<< 2022.2 >>
SMTWTFS
  1 2345
678910 1112
13141516171819
20 21 22 23242526
27 28      
 
























T: Y: ALL: Online:
ThemePanel
Created in 0.0791 sec.