From: Roland G. <RGi...@cp...> - 2002-08-04 10:30:14
|
> I'm using Expect to start a telnet session from a linux box to a sun > workstation and afterwards open a telnet to a cisco router. Expect > enters interactive mode when the login prompt is displayed, works > fine. When I'm going to enter my user and pass, the password is > visible (normally hidden) - how can I change this behavior? From within an interact() call, you cannot. The point is that the telnet connection sets the pty into non-echoing mode during password entry, but this setting isn't propagated automatically to the users terminal. A work-around would be to ask for the username/password in advance (without echoing) and automating the login sequence in the background. Hope this helps, Roland PS: sorry for the delay, I have been on vacation last week. -- RGi...@cp... |