diff options
| author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2007-08-29 22:33:29 +0000 |
|---|---|---|
| committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2007-08-29 22:33:29 +0000 |
| commit | 16d15bcb7e490b491f70874e9a1df1c2358ae543 (patch) | |
| tree | e0318da043df8f61eb24ec21859fec169928e64e /pexpect/pxssh.py | |
| parent | 67577ce89f098e9e4bbfe8ac6772b5afa9115073 (diff) | |
| download | pexpect-16d15bcb7e490b491f70874e9a1df1c2358ae543.tar.gz | |
Small doc change.
Diffstat (limited to 'pexpect/pxssh.py')
| -rw-r--r-- | pexpect/pxssh.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py index 9c8b15b..708b967 100644 --- a/pexpect/pxssh.py +++ b/pexpect/pxssh.py @@ -162,15 +162,15 @@ class pxssh (spawn): more easily matched. The default 'original_prompt' is very optimistic and is easily fooled. It's more reliable to try to match the original prompt as exactly as possible to prevent false matches by server - strings such as the "Message Of The Day". On some systems you can - disable the MOTD on the remote server by creating a zero-length file in - the home directory of the remote server called ".hushlogin". If a - prompt cannot be found then this will not necessarily cause the login - to fail. In the case of a timeout when looking for the prompt we assume - that the original prompt was so weird that we could not match it, so we - use a few tricks to guess when we have reached the prompt. Then we hope - for the best and blindly try to reset the prompt to something more - unique. If that fails then login() raises an ExceptionPxssh exception. + strings such as the "Message Of The Day". On many systems you can + disable the MOTD on the remote server by creating a zero-length file + called "~/.hushlogin" on the remote server. If a prompt cannot be found + then this will not necessarily cause the login to fail. In the case of + a timeout when looking for the prompt we assume that the original + prompt was so weird that we could not match it, so we use a few tricks + to guess when we have reached the prompt. Then we hope for the best and + blindly try to reset the prompt to something more unique. If that fails + then login() raises an ExceptionPxssh exception. In some situations it is not possible or desirable to reset the original prompt. In this case, set 'auto_prompt_reset' to False to |
