websoft9/apps/roles/bt/files/en_port.exp

13 lines
169 B
Plaintext
Raw Normal View History

2022-11-08 11:56:42 +08:00
#!/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