#!/usr/bin/expect
set timeout 1
spawn su root
expect "root:"
send "password\r"
interact
[shell] expect自动登录linux
最新推荐文章于 2022-07-07 14:50:19 发布
#!/usr/bin/expect
set timeout 1
spawn su root
expect "root:"
send "password\r"
interact