"send" command truncates data
From: BigJoeInternet (arnel_lim_at_yahoo.com)
Date: 03/31/04
- Next message: Salvatore Sanfilippo: "Re: Language Specification - Where is it?"
- Previous message: Darren New: "Re: How to set string to NULL (Hex value 00)"
- Next in thread: Ralf Fassel: "Re: "send" command truncates data"
- Reply: Ralf Fassel: "Re: "send" command truncates data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Mar 2004 22:48:47 -0800
I have the intermittently problem when I use "send" to send a command
to a console port on an Ethernet Switch. Note, the console port is
connected to a terminal server, and my Tcl/Expect scripts telnets to a
port on that terminal server to access the Switch console.
I use...
send "$cmd\r"
expect {
timeout { puts "Timeout sending $cmd" }
$cmd { puts "Command $cmd sent" }
}
Every now and then I see $cmd truncated. For example, for the command
"delete routes all\r" I see "delete ro" on the screen, the I get an
timeout since the switch never saw the \r. I'm not sure whether the
command was sent and never processed by the switch, whether there's
some buffer problem I'm not aware of that I'm exceeding, or whether
the terminal server just drops a portion of the command due to some
other problem. Anybody got any suggestions in determining where my
truncated_text\r went?
- Next message: Salvatore Sanfilippo: "Re: Language Specification - Where is it?"
- Previous message: Darren New: "Re: How to set string to NULL (Hex value 00)"
- Next in thread: Ralf Fassel: "Re: "send" command truncates data"
- Reply: Ralf Fassel: "Re: "send" command truncates data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|