send: spawn id exp3 not open
while execution
"send -- "\r""
(file "script.exp" line 57)
2 points:
1.
do an [expect] before you try to do [exp_send]
you will probably get the errormessage from minicom
2.
is there a special reason using minicom?
what about:
# open the serial device
set fd [ open /dev/<myttydevice> { NONBLOCK RDWR} ]
# set baudrate, handshake, encoding ..
fconfigure $fd -mode <to my liking>
spawn -open $fd
expect ..
exp_send ..
uwe
add:just to give a reference:
expect1.1> spawn minicom
spawn minicom
30500
expect1.2> expect
minicom: WARNING: configuration file not found, using defaults
minicom: cannot open /dev/modem: No such file or directory
expect1.3> expect
expect: spawn id exp4 not open
while executing
"expect"
expect1.4>