websoft9/apps/roles/bt/files/en-password.exp

12 lines
179 B
Plaintext
Raw Normal View History

2022-11-08 08:52:30 +08:00
#!/usr/bin/expect -f
set timeout 30
spawn /usr/bin/bt
expect "command number"
send "5\r"
expect "new password"
send "123456\r"
2022-11-08 08:52:30 +08:00
#interact
expect eof
catch wait result;