|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Tcl thread and expectHi, Basically I am trying to spawn a telnet session from a
separate thread. Following Tcl script is executed on a Windows machine. package require Thread set threadId [thread::create] thread::send $threadId { package require Expect spawn telnet
10.101.210.200 expect {
"login:"
{ send -- "test\n" } } expect {
"Password:" { send --
"test123\n" } } send --
"exit\n" expect
"logout" } thread::release $threadId I get the error “FlushChannel:
damaged channel list” at the end of execution. The telnet session goes well but at the end of execution I
get the above error. Following packages are used Tcl8.5.3 Expect5.43 Thread2.6.5 Is there any solution for this? Regards, Indrojit Paul
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Tcl-Threads mailing list Tcl-Threads@... https://lists.sourceforge.net/lists/listinfo/tcl-threads |
|
|
|
Re: Tcl thread and expecthttp://wiki.tcl.tk/11581 From: tcl-threads-bounces@...
[mailto:tcl-threads-bounces@...] On Behalf Of Indrojit Paul Hi, Basically I am trying to spawn a telnet session from a
separate thread. Following Tcl script is executed on a Windows machine. package require Thread set threadId [thread::create] thread::send $threadId { package require Expect spawn telnet 10.101.210.200 expect {
"login:"
{ send -- "test\n" } } expect {
"Password:" { send --
"test123\n" } } send --
"exit\n" expect
"logout" } thread::release $threadId I get the error “FlushChannel:
damaged channel list” at the end of execution. The telnet session goes well but at the end of execution I
get the above error. Following packages are used Tcl8.5.3 Expect5.43 Thread2.6.5 Is there any solution for this? Regards, Indrojit Paul
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Tcl-Threads mailing list Tcl-Threads@... https://lists.sourceforge.net/lists/listinfo/tcl-threads |
| Free Forum Powered by Nabble | Forum Help |