nuttx-release/close.exp

17 lines
322 B
Text
Executable file

#!/usr/bin/expect
## Expect Script for closing a `screen` session
## Wait at most 10 seconds
set timeout 10
## For every 1 character sent, wait 0.001 milliseconds
set send_slow {1 0.001}
## Connect to SBC over USB Serial Port
spawn screen -x
## Wait a while
sleep 5
## Terminate the session: Ctrl-A k y
send "\x01ky"