websoft9/apps/roles/bt/files/en_port.exp
2022-11-08 11:57:12 +08:00

13 lines
169 B
Plaintext

#!/usr/bin/expect -f
#port must > 4 characters
set timeout 30
spawn /usr/bin/bt
expect "command number"
send "8\r"
expect "new port"
send "8888\r"
interact
expect eof