expect + TCL problem with send on underscore character
From: EP (e.prattico_at_saq.qc.ca)
Date: 02/26/04
- Next message: setok_at_fishpool.com: "Re: xotcl accessing member variable from inside a tcl proc"
- Previous message: Kevin Kenny: "Re: Tcl_Obj ** problem in C++ program ??"
- Next in thread: Cameron Laird: "Re: expect + TCL problem with send on underscore character"
- Reply: Cameron Laird: "Re: expect + TCL problem with send on underscore character"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Feb 2004 08:44:27 -0800
Hi,
I have an expect script which does a send of a command to remote
server using ssh. When I send a command with the underscore character,
the command gets executed correctly but the echo to the scrren gets a
messed up before the underscore.
Here is the line in my expect script: send -- "/usr/local/bin/run_cmd
start"
Here is the output: user@hostname$ /usr/local/bin/run _cmd start
You see the hex character before the underscore character if the
script is run through a CGI and sent to a browser or run in an xterm
with results going to a file. VI'ing the file will show the hex
character.
Version info:
tcl-8.3.3-8
tk-8.3.3-8
expect-5.34-8
I also tried the same script with expect-5.40 and got the same
results.
Thanks.
EP
- Next message: setok_at_fishpool.com: "Re: xotcl accessing member variable from inside a tcl proc"
- Previous message: Kevin Kenny: "Re: Tcl_Obj ** problem in C++ program ??"
- Next in thread: Cameron Laird: "Re: expect + TCL problem with send on underscore character"
- Reply: Cameron Laird: "Re: expect + TCL problem with send on underscore character"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|