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