diff options
author | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2007-03-07 03:38:52 +0000 |
---|---|---|
committer | noah <noah@656d521f-e311-0410-88e0-e7920216d269> | 2007-03-07 03:38:52 +0000 |
commit | 3b83f590704fb158bc8a0df0b681f06f82ff31ac (patch) | |
tree | 8836fb2948afb5712bc45f20d7555bc5e60e4911 /pexpect/pexpect.py | |
parent | f06d6c64d591cefa4bcc72f304f80178a2834990 (diff) | |
download | pexpect-3b83f590704fb158bc8a0df0b681f06f82ff31ac.tar.gz |
Updated docs.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@462 656d521f-e311-0410-88e0-e7920216d269
Diffstat (limited to 'pexpect/pexpect.py')
-rw-r--r-- | pexpect/pexpect.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pexpect/pexpect.py b/pexpect/pexpect.py index b378958..a2bacc2 100644 --- a/pexpect/pexpect.py +++ b/pexpect/pexpect.py @@ -167,7 +167,8 @@ def run (command, timeout=-1, withexitstatus=False, events=None, extra_args=None from pexpect import * run ('scp foo myname@host.example.com:.', events={'(?i)password': mypassword}) - == Examples == + Examples + ======== Start the apache daemon on the local machine:: @@ -184,7 +185,8 @@ def run (command, timeout=-1, withexitstatus=False, events=None, extra_args=None from pexpect import * (command_output, exitstatus) = run ('ls -l /bin', withexitstatus=1) - === Tricky Examples === + Tricky Examples + =============== 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:: |