diff options
-rw-r--r-- | pexpect/run.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/run.py b/pexpect/run.py index af73137..ff288a1 100644 --- a/pexpect/run.py +++ b/pexpect/run.py @@ -49,7 +49,7 @@ def run(command, timeout=30, withexitstatus=False, events=None, (command_output, exitstatus) = run('ls -l /bin', withexitstatus=1) The following will run SSH and execute 'ls -l' on the remote machine. The - password 'secret' will be sent if the '(?i)password' pattern is ever seen: + password 'secret' will be sent if the '(?i)password' pattern is ever seen:: run("ssh username@machine.example.com 'ls -l'", events={'(?i)password':'secret\\n'}) |