summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2007-08-29 22:33:29 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2007-08-29 22:33:29 +0000
commitd73fb15dcab0f0751851c2b3d2450d0a653347c4 (patch)
treee0318da043df8f61eb24ec21859fec169928e64e
parentf51656b4b9254f920e8214f3993becb2ef871fe8 (diff)
downloadpexpect-d73fb15dcab0f0751851c2b3d2450d0a653347c4.tar.gz
Small doc change.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@487 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r--pexpect/pxssh.py18
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