How to send '}' in expect?
Hi,
I'm trying to use expect to get data from telnet Here's my code : Code:
set equipment [lindex $argv 0] Build label: NDPGSN_5_0_SRC_GSN_LINUX_4R1D01 Build host: selnx056 Build date: Thu Feb 19 20:50:48 MET 2009 Installed: Sat Dec 19 11:32:38 UTC 2009 === rzulkif8@eqm01s13p2 ANCB ~ # gsh get_e1t1_frac -eq {2 6 1 1 Missing }. === rzulkif8@eqm01s13p2 ANCB ~ # } -trunk 3 }: Command not found. === rzulkif8@eqm01s13p2 ANCB ~ # -frac 16 -frac: Command not found. === rzulkif8@eqm01s13p2 ANCB ~ # === rzulkif8@eqm01s13p2 ANCB ~ # exit logout ================================================ so in bold letter not send in 1 line, but i want sent it to 1 line thank's for your suggestion |
I don't know, but it looks to me like the '}' after '$equipment' is confusing it... Perhaps you could try escaping it?
|
dear Snark1994.
thank you for your suggestion I've try escaping it, but still command not send in 1 line :( any idea ? |
All times are GMT -5. The time now is 01:06 AM. |