2 ms·
Unfortunately, pexpect does not do everything. I use this scheme to have keyboard shortcuts for devices on the other of serial ports. spawn -open [open /de
by sigjuice 6y ago
Unfortunately, pexpect does not do everything. I use this scheme to have keyboard shortcuts for devices on the other of serial ports.
spawn -open [open /dev/ttyUSB0 w+]
interact {
`u {send "uname\n"}
`v {send "show-version\n"}
`` exit
# lots more
}
I have looked into it a couple of times, but I haven't been able to figure out the pexpect equivalent.