Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

issues with expect -send: spawn id exp4 not open

1,484 views
Skip to first unread message

rashmi

unread,
Mar 30, 2005, 1:53:50 AM3/30/05
to
I have a procedure which does logout for eg:
proc cli_logout { } {
send "quit\r"
expect "*#"
}
whenever i call this procedure in another procedure
proc validate_ntp { } {
cli_logout
}
it gives out an error mesage-----
send: spawn id exp4 not open
while executing
"send "quit\r""
(procedure "cli_logout" line 2)
invoked from within
Can u people plz help me out in using the procedures .
Thanks in advance
Rashmi


abhish...@gmail.com

unread,
Mar 30, 2005, 2:53:36 AM3/30/05
to
it seems spawn connection is already close before call of procedure
validate_ntp ...

I tried same above my system ( router ) ... for me it works fine ... so
please verify that before calling validate_ntp does connection exists
or not

0 new messages