Wed Mar 29 13:48:28 CEST 2006
eight02645999 at yahoo.com writes:
> When i purposely input a wrong password, it "hangs" at the login prompt
> waiting for
> login and Password. The host i am telnetting to is a unix server.
> How can i "exit" this login prompt if the user keys in wrong password
> in my script?
It looks to me like after you send the wrong password, you send "ls"
without checking that you got back another login prompt. Then the
program hangs because both ends are waiting for input.
Whatever your actual application is, try to avoid doing it this way.
More information about the Python-list