Search.setIndex({"docnames": ["FAQ", "api/fdpexpect", "api/index", "api/pexpect", "api/popen_spawn", "api/pxssh", "api/replwrap", "commonissues", "examples", "history", "index", "install", "overview"], "filenames": ["FAQ.rst", "api/fdpexpect.rst", "api/index.rst", "api/pexpect.rst", "api/popen_spawn.rst", "api/pxssh.rst", "api/replwrap.rst", "commonissues.rst", "examples.rst", "history.rst", "index.rst", "install.rst", "overview.rst"], "titles": ["FAQ", "fdpexpect - use pexpect with a file descriptor", "API documentation", "Core pexpect components", "popen_spawn - use pexpect with a piped subprocess", "pxssh - control an SSH session", "replwrap - Control read-eval-print-loops", "Common problems", "Examples", "History", "Pexpect version 4.8", "Installation", "API Overview"], "terms": {"q": 0, "where": [0, 3, 5, 7, 9, 11], "can": [0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "i": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "get": [0, 3, 5, 6, 7, 8, 9, 12], "help": [0, 3, 5, 9], "pexpect": [0, 2, 5, 6, 7, 8, 9, 11], "mail": 0, "list": [0, 3, 4, 5, 7, 8, 9, 12], "A": [0, 3, 6, 8, 9, 12], "you": [0, 1, 3, 5, 6, 7, 8, 9, 12], "us": [0, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12], "tag": 0, "stackoverflow": 0, "ask": [0, 3, 5, 7, 12], "question": 0, "specif": [0, 12], "relat": 0, "For": [0, 1, 3, 5, 6, 7, 8, 9, 12], "more": [0, 3, 5, 6, 7, 9, 11, 12], "gener": [0, 3, 5, 6, 7, 9, 12], "python": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12], "support": [0, 1, 3, 7, 9, 10, 12], "": [0, 3, 4, 5, 7, 8, 9, 12], "irc": 0, "channel": 0, "pleas": [0, 3, 9, 10], "refrain": 0, "from": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12], "github": [0, 9, 10], "system": [0, 3, 5, 7, 8, 9, 11], "script": [0, 3, 7, 8, 10], "why": [0, 7], "don": [0, 2, 3, 5, 9, 10], "t": [0, 2, 3, 5, 7, 9, 12], "shell": [0, 3, 5, 6, 8, 9, 12], "pipe": [0, 1, 2, 3, 5, 10], "redirect": [0, 3, 5], "work": [0, 1, 3, 5, 7, 9, 10, 12], "when": [0, 3, 5, 7, 9, 12], "spawn": [0, 1, 2, 4, 5, 6, 7, 9, 10, 11, 12], "command": [0, 3, 5, 6, 8, 9, 10, 12], "rememb": [0, 3, 5, 12], "doe": [0, 1, 3, 4, 5, 8, 9, 10, 12], "NOT": [0, 3, 5], "interpret": [0, 3, 5, 8], "meta": [0, 3, 5], "charact": [0, 3, 5, 9, 12], "wild": [0, 3, 5], "card": [0, 3, 5], "That": [0, 3], "done": [0, 5, 9], "ar": [0, 1, 2, 3, 5, 6, 7, 8, 9, 11, 12], "thi": [0, 1, 3, 4, 5, 6, 7, 8, 9, 11, 12], "common": [0, 3, 5, 9, 10], "mistak": [0, 3, 5], "If": [0, 1, 3, 5, 6, 7, 9, 12], "want": [0, 3, 5, 12], "run": [0, 2, 5, 7, 8, 9, 11, 12], "through": [0, 1, 3, 5, 9], "anoth": [0, 3, 5], "must": [0, 3, 5, 9, 12], "also": [0, 3, 5, 8, 9, 12], "start": [0, 3, 5, 6, 8, 9], "exampl": [0, 1, 3, 5, 7, 9, 10, 12], "child": [0, 4, 5, 9, 10, 12], "bin": [0, 3, 5, 9], "bash": [0, 2, 3, 5, 6, 9], "c": [0, 1, 3, 5, 10], "l": [0, 3, 5, 7, 9, 12], "grep": [0, 3, 5], "log": [0, 3, 5, 8, 9, 12], "log_list": 0, "txt": [0, 1, 3, 5], "expect": [0, 1, 3, 4, 5, 6, 7, 9, 10, 12], "eof": [0, 3, 5, 7, 9, 10], "The": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12], "second": [0, 1, 3, 5, 6, 9, 12], "form": [0, 3, 5], "pass": [0, 1, 3, 5, 6, 7, 9, 12], "argument": [0, 3, 5, 9, 12], "situat": [0, 3, 5, 12], "wish": [0, 3, 5, 7, 12], "its": [0, 3, 5, 7, 9], "own": [0, 1, 3, 5, 9, 12], "make": [0, 3, 5, 6, 7, 9, 10, 12], "syntax": [0, 3, 5], "clear": [0, 3, 5, 12], "follow": [0, 3, 5, 7, 9, 12], "equival": [0, 3, 5], "previou": [0, 3, 5, 9], "shell_cmd": [0, 3, 5], "befor": [0, 3, 5, 9, 10, 12], "after": [0, 3, 5, 6, 9, 12], "properti": [0, 9, 12], "sound": 0, "weird": [0, 3, 5, 9], "how": [0, 3, 5, 6, 9], "b": 0, "option": [0, 3, 5, 9, 12], "so": [0, 3, 5, 6, 7, 9, 12], "made": [0, 8, 9], "easier": [0, 5], "me": [0, 3, 9], "whatev": 0, "my": 0, "life": 0, "what": [0, 3, 5, 7, 9, 12], "best": [0, 5, 8, 12], "origin": [0, 5, 9], "wa": [0, 1, 3, 5, 8, 9, 10, 12], "go": 0, "model": 0, "found": [0, 3, 5, 6, 7, 9], "didn": 0, "actual": [0, 9, 12], "like": [0, 1, 3, 4, 5, 7, 9, 10, 12], "wai": [0, 3, 7, 8, 9, 12], "did": [0, 9], "some": [0, 3, 5, 7, 8, 9, 12], "thing": [0, 5, 9, 12], "It": [0, 3, 5, 7, 8, 9, 10, 12], "confus": [0, 5], "littl": [0, 3, 5, 7, 12], "first": [0, 3, 5, 6, 9], "becaus": [0, 3, 9, 12], "includ": [0, 1, 3, 5, 9], "match": [0, 3, 5, 7, 8, 9, 12], "string": [0, 3, 4, 5, 6, 7, 9, 12], "mean": [0, 3, 5, 6, 7, 9, 12], "point": [0, 3, 9, 12], "just": [0, 3, 5, 9, 10, 12], "love": 0, "great": 0, "ha": [0, 3, 5, 6, 7, 9, 12], "bail": 0, "out": [0, 1, 3, 5, 12], "real": [0, 3, 5], "jam": 0, "someth": [0, 3, 5, 6, 7, 9], "would": [0, 3, 5, 6, 7, 8, 9, 12], "do": [0, 3, 5, 6, 7, 9, 12], "90": 0, "need": [0, 3, 5, 6, 7, 9, 12], "10": [0, 5, 8, 9], "size": [0, 3, 5, 9], "allow": [0, 1, 3, 5, 7, 9, 10, 12], "write": [0, 3, 4, 5, 9, 12], "code": [0, 2, 3, 4, 5, 7, 9, 12], "instead": [0, 3, 5, 9, 12], "tcl": [0, 3, 10], "nearli": 0, "big": [0, 7, 9], "everyth": [0, 3, 5, 9, 12], "have": [0, 2, 3, 5, 7, 9, 12], "ever": [0, 3, 5], "popen": [0, 4, 9], "fine": 0, "output": [0, 3, 5, 6, 8, 9, 10, 12], "non": [0, 3, 12], "interact": [0, 3, 5, 6, 7, 8, 9, 10, 12], "program": [0, 3, 7, 9, 12], "unam": 0, "ping": 0, "veri": [0, 3, 5, 7, 9, 12], "well": [0, 10], "almost": 0, "certainli": 0, "fail": [0, 5, 9, 12], "most": [0, 3, 5, 7, 9], "applic": [0, 3, 5, 7, 9, 10, 12], "password": [0, 3, 5, 7, 8, 9, 12], "telnet": [0, 3, 10], "ftp": [0, 3, 5, 8, 10, 12], "ssh": [0, 2, 3, 8, 9, 10, 12], "There": [0, 3, 4, 9, 12], "two": [0, 3, 5, 12], "reason": [0, 3, 7, 9], "an": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 12], "mai": [0, 3, 5, 7, 9, 12], "bypass": [0, 3, 7], "stdout": [0, 3, 5, 9, 12], "print": [0, 2, 3, 5, 7, 8, 9, 10, 12], "directli": [0, 3, 5, 6, 9], "control": [0, 1, 2, 8, 9, 10, 12], "tty": [0, 3, 5, 7, 12], "cannot": [0, 5, 7], "prompt": [0, 3, 5, 6, 7, 8, 9, 12], "stderr": [0, 3], "built": 0, "standard": [0, 3, 5, 7, 9, 10, 11], "io": 0, "librari": [0, 7, 9, 11], "anyth": [0, 3, 5], "stdio": [0, 3], "h": [0, 3], "One": [0, 7, 12], "featur": [0, 3, 5, 9], "buffer": [0, 3, 5, 7, 9, 12], "all": [0, 1, 3, 5, 7, 8, 12], "input": [0, 3, 5, 6, 8, 10, 12], "normal": [0, 3, 5, 6, 9], "line": [0, 3, 4, 7, 8, 9, 10], "your": [0, 1, 3, 5, 7, 9, 10, 12], "termin": [0, 2, 3, 5, 7, 9, 12], "screen": [0, 2, 5, 9, 12], "everytim": 0, "feed": 0, "current": [0, 3, 5, 9], "data": [0, 1, 3, 4, 5, 7, 9, 12], "problem": [0, 3, 5, 9, 10, 12], "come": [0, 3, 7, 12], "connect": [0, 1, 3, 5, 8, 9, 12], "smart": 0, "tell": 0, "In": [0, 3, 5, 7, 8, 9, 12], "case": [0, 2, 3, 5, 8, 9, 12], "switch": [0, 9], "mode": [0, 3, 7], "block": [0, 3, 5, 6, 9, 12], "flush": [0, 3, 5, 7, 9], "full": [0, 3, 5, 10], "caus": [0, 3, 5, 9], "deadlock": 0, "effici": [0, 3], "disk": 0, "take": [0, 1, 3, 5, 8, 9], "messag": [0, 5, 8, 12], "enter": [0, 3, 5, 7, 8, 9, 12], "user": [0, 3, 5, 7, 8, 12], "name": [0, 1, 3, 5, 9, 12], "n": [0, 3, 9, 12], "wait": [0, 3, 4, 5, 6, 7, 9, 12], "type": [0, 3, 9, 10, 12], "put": [0, 3, 8, 9], "even": [0, 3, 5, 7], "though": [0, 3, 7], "linefe": [0, 12], "result": [0, 1, 3, 5, 6, 9, 12], "never": [0, 9], "receiv": [0, 3, 5, 10], "yet": [0, 7], "sit": 0, "respons": [0, 1, 3, 5, 8, 12], "lib": 0, "area": 0, "could": [0, 1, 3, 5, 7, 8, 9, 12], "side": 0, "wherea": 0, "over": [0, 3, 5, 8], "inform": [0, 5, 8, 9, 11, 12], "three": [0, 12], "state": [0, 3, 8, 9, 12], "file": [0, 2, 3, 5, 8, 9, 10, 12], "These": [0, 2, 3, 9, 12], "_iofbf": 0, "_iolbf": 0, "_ionbf": 0, "unbuff": 0, "talk": [0, 3, 5, 7, 12], "descriptor": [0, 2, 3, 9, 10, 12], "usual": [0, 3, 7, 9], "short": [0, 5, 7], "recompil": [0, 3], "fflush": 0, "everywher": 0, "custom": 0, "much": [0, 9], "about": [0, 3, 5, 12], "remain": [0, 3, 5], "unflush": 0, "while": [0, 3, 5, 9], "send": [0, 3, 4, 5, 6, 8, 9, 10, 12], "ani": [0, 1, 3, 4, 5, 9, 10, 12], "still": [0, 1, 2, 3, 9], "stuck": 0, "answer": 0, "pseudo": [0, 3, 5, 7, 12], "devic": [0, 1, 3, 7, 9, 12], "forc": [0, 3, 5, 9, 12], "oppos": 0, "each": [0, 3, 4, 5, 8, 9, 12], "correspond": 0, "oper": [0, 7, 9], "quot": [0, 3], "ugli": 0, "solut": [0, 7], "posix": [0, 3, 9, 11], "thei": [0, 2, 3, 7, 9, 12], "sens": 0, "set": [0, 3, 5, 9, 12], "investig": 0, "think": [0, 7, 9], "process": [0, 4, 5, 6, 7, 9, 12], "maintain": [0, 2], "extern": [0, 8], "kernel": 0, "whatnot": 0, "alter": [0, 5], "m": [0, 3, 5, 7, 9], "quit": [0, 7], "sure": [0, 3, 9], "chang": [0, 3, 5, 6, 8, 12], "happen": [0, 7, 12], "intern": [0, 12], "look": [0, 1, 3, 5, 7, 9, 12], "decid": [0, 3, 5, 9], "behavior": [0, 3, 5, 9], "base": [0, 1, 3, 9], "whether": [0, 1, 3, 5], "see": [0, 3, 5, 7, 8, 9, 11, 12], "isatti": [0, 3, 9], "hope": [0, 5, 9], "qualifi": 0, "scrape": [0, 5], "depend": [0, 3], "orient": 0, "easi": [0, 3, 6, 8, 10, 12], "emit": [0, 10], "mani": [0, 3, 5, 8, 9, 12], "sequenc": [0, 3, 4, 8, 9], "video": [0, 3], "attribut": [0, 3, 5, 7, 9], "address": [0, 7, 8], "curs": [0, 3], "becom": [0, 3, 9], "difficult": [0, 9], "ascertain": 0, "text": [0, 3, 12], "displai": [0, 3, 5], "we": [0, 1, 2, 3, 5, 9, 12], "suggest": [0, 9], "pyte": [0, 2, 9], "modul": [0, 2, 3, 4, 5, 9, 10, 11, 12], "ansi": [0, 2, 5, 9, 12], "releas": [0, 10], "version": [0, 2, 3, 6, 7, 11, 12], "now": [0, 2, 7, 9], "mark": 0, "deprec": [0, 2, 9], "remov": [0, 9], "futur": [0, 6, 9], "strang": 0, "pexect": 0, "gevent": 0, "fork": [0, 10], "2": [0, 3, 5, 7, 11, 12], "exec": [0, 5], "select": [0, 3, 5, 9], "waitpid": [0, 3, 5], "implement": [0, 3, 8], "selector": 0, "famili": [0, 3, 5, 9], "call": [0, 1, 3, 4, 5, 7, 9, 12], "been": [0, 2, 3, 6, 7, 9, 12], "known": 0, "misbehav": 0, "pair": [0, 3], "might": [0, 3, 7, 8, 9, 12], "isol": 0, "framework": 0, "manipul": 0, "event": [0, 1, 3, 5, 9], "entir": [0, 3], "open": [1, 3, 5, 8, 9], "close": [1, 3, 4, 5, 7, 9], "socket": [1, 3, 5], "fifo": 1, "licens": [1, 3, 5], "approv": [1, 3, 5], "osi": [1, 3, 5], "fsf": [1, 3, 5], "gpl": [1, 3, 5], "compat": [1, 3, 5, 9], "http": [1, 3, 5], "opensourc": [1, 3, 5], "org": [1, 3, 5, 12], "isc": [1, 3, 5], "copyright": [1, 3, 5], "2012": [1, 3, 5, 9], "noah": [1, 3, 5, 9, 12], "spurrier": [1, 3, 5, 9], "permiss": [1, 3, 5, 7, 12], "TO": [1, 3, 5], "copi": [1, 3, 5], "modifi": [1, 3, 5, 8, 9], "AND": [1, 3, 5], "OR": [1, 3, 5], "distribut": [1, 3, 5, 8], "softwar": [1, 3, 5, 10], "FOR": [1, 3, 5], "purpos": [1, 3, 5, 12], "WITH": [1, 3, 5], "without": [1, 3, 5, 9, 12], "fee": [1, 3, 5], "herebi": [1, 3, 5], "grant": [1, 3, 5], "provid": [1, 3, 4, 5, 6, 8, 9], "THAT": [1, 3, 5], "THE": [1, 3, 5], "abov": [1, 3, 5, 6, 9, 11], "notic": [1, 3, 5, 7, 9], "appear": [1, 3, 5, 9, 12], "IN": [1, 3, 5], "AS": [1, 3, 5], "author": [1, 3, 5, 9], "disclaim": [1, 3, 5], "warranti": [1, 3, 5], "regard": [1, 3, 5, 9], "impli": [1, 3, 5], "OF": [1, 3, 5, 12], "merchant": [1, 3, 5], "fit": [1, 3, 5], "NO": [1, 3, 5], "shall": [1, 3, 5], "BE": [1, 3, 5], "liabl": [1, 3, 5], "special": [1, 3, 5, 10], "direct": [1, 3, 5, 12], "indirect": [1, 3, 5], "consequenti": [1, 3, 5], "damag": [1, 3, 5], "whatsoev": [1, 3, 5], "loss": [1, 3, 5], "profit": [1, 3, 5], "action": [1, 3, 5, 12], "contract": [1, 3, 5], "neglig": [1, 3, 5], "other": [1, 3, 5, 7, 8, 9, 10, 12], "tortiou": [1, 3, 5], "aris": [1, 3, 5], "perform": [1, 3, 5, 9, 12], "fd": [1, 3, 5, 9], "arg": [1, 3], "none": [1, 3, 4, 5, 6, 7, 9, 12], "timeout": [1, 3, 4, 5, 6, 9, 10], "30": [1, 3, 4, 5, 6, 9, 12], "maxread": [1, 3, 4, 5, 9], "2000": [1, 3, 4, 5], "searchwindows": [1, 3, 4, 5, 9], "logfil": [1, 3, 4, 5, 12], "encod": [1, 3, 4, 5], "codec_error": [1, 3, 4, 5], "strict": [1, 3, 4, 5], "use_pol": [1, 3, 5, 9], "fals": [1, 3, 5, 6, 9], "sourc": [1, 3, 4, 5, 6], "spawnbas": 1, "suppli": 1, "read": [1, 2, 3, 5, 7, 9, 10, 12], "pattern": [1, 3, 5, 9, 10], "modem": [1, 9], "serial": [1, 9], "__init__": [1, 3, 4, 5], "int": [1, 6], "object": [1, 3, 4, 5, 6, 7, 9, 12], "fileno": [1, 3], "method": [1, 3, 5, 6, 8, 9, 12], "return": [1, 3, 4, 5, 6, 9, 12], "isal": [1, 3, 9], "check": [1, 3, 8, 9], "valid": [1, 3], "o": [1, 3, 4, 5, 9], "fstat": 1, "rais": [1, 3, 5, 6, 9, 12], "except": [1, 2, 4, 5, 9, 10], "assum": [1, 5], "aliv": [1, 3, 9], "time": [1, 3, 5, 9, 10, 12], "noth": [1, 3, 12], "elsewher": 1, "oserror": [1, 9], "expect_exact": [1, 3, 4, 9], "expect_list": [1, 3, 4, 9], "As": [1, 3, 4, 5, 11], "core": [2, 10], "compon": [2, 10], "class": [2, 6, 7, 9], "function": [2, 5, 6, 9], "util": 2, "fdpexpect": [2, 9, 10, 12], "fdspawn": [2, 9, 12], "popen_spawn": [2, 10, 12], "subprocess": [2, 3, 5, 9, 10], "popenspawn": [2, 9, 12], "replwrap": [2, 9, 10], "eval": [2, 10], "loop": [2, 3, 9, 10], "replwrapp": [2, 6], "pexpect_prompt": [2, 6], "pxssh": [2, 9, 10], "session": [2, 8, 9, 10, 12], "exceptionpxssh": [2, 5], "4": [2, 3, 5, 6, 11, 12], "were": [2, 3, 5, 9, 10], "separ": [2, 3, 4, 5], "main": [2, 3], "better": [2, 3, 9, 10], "emul": [2, 3, 9, 12], "packag": [2, 3, 8, 9, 10], "present": [2, 11], "advis": 2, "them": [2, 3, 5, 6, 8, 9, 10, 12], "new": [2, 6, 9, 12], "automat": [3, 4, 5, 7], "autom": [3, 10, 12], "passwd": [3, 10, 12], "etc": [3, 5, 10, 12], "setup": [3, 5, 10], "duplic": [3, 10], "instal": [3, 6, 9, 10], "differ": [3, 5, 7, 8, 9, 10, 12], "server": [3, 5, 8, 9, 10, 12], "test": [3, 5, 9, 10, 12], "spirit": [3, 10], "libe": [3, 10], "pure": [3, 10], "requir": [3, 5, 9, 10], "extens": [3, 10], "compil": [3, 10, 12], "should": [3, 5, 6, 7, 8, 9, 10, 12], "platform": [3, 5, 9, 10, 12], "pty": [3, 9, 10, 11, 12], "interfac": [3, 4, 9, 10, 12], "focus": 3, "eas": 3, "simpl": [3, 8], "task": [3, 7, 8, 9], "power": 3, "simpler": 3, "than": [3, 5, 8, 9, 12], "good": 3, "quickli": 3, "execut": [3, 5, 6, 9], "given": [3, 5, 8, 12], "handi": [3, 5, 12], "replac": [3, 12], "la": 3, "scp": 3, "foo": [3, 12], "com": [3, 5, 7, 12], "sendlin": [3, 4, 5, 10, 12], "mypassword": [3, 7], "outsid": 3, "stream": [3, 9, 12], "which": [3, 4, 5, 6, 7, 9, 12], "stdin": [3, 4, 5, 9], "credit": 3, "richard": 3, "holden": 3, "marco": 3, "molteni": 3, "kimberlei": 3, "burchett": 3, "robert": 3, "stone": 3, "hartmut": 3, "goebel": 3, "chad": [3, 9], "schroeder": [3, 9], "erick": 3, "tryzelaar": 3, "dave": 3, "kirbi": 3, "id": 3, "vander": 3, "molen": 3, "georg": 3, "todd": 3, "noel": 3, "taylor": 3, "nicola": 3, "d": [3, 12], "cesar": 3, "alexand": 3, "gattin": 3, "jacqu": 3, "etienn": 3, "baudoux": 3, "geoffrei": 3, "marshal": 3, "francisco": 3, "lourenco": 3, "glen": 3, "mabei": 3, "karthik": 3, "gurusami": 3, "fernando": 3, "perez": 3, "corei": 3, "minyard": 3, "jon": 3, "cohen": 3, "guillaum": 3, "chazarain": 3, "andrew": 3, "ryan": 3, "nick": 3, "craig": 3, "wood": 3, "jorgen": 3, "grahn": 3, "john": 3, "spiegel": 3, "jan": 3, "shane": 3, "kerr": 3, "let": [3, 9, 12], "know": [3, 12], "forgot": 3, "anyon": 3, "free": [3, 8], "stuff": [3, 9], "sourceforg": [3, 9], "net": 3, "cwd": [3, 4, 5], "env": [3, 4, 5, 9], "ignore_sighup": [3, 5, 9], "echo": [3, 5, 7, 9], "true": [3, 5, 6, 9], "preexec_fn": [3, 4, 5, 9], "dimens": [3, 5, 9], "constructor": [3, 5], "paramet": [3, 5, 6, 9, 12], "usr": [3, 5, 9], "latr": [3, 5], "tmp": [3, 5, 12], "construct": [3, 5, 9], "creat": [3, 5, 8, 9], "readi": [3, 5], "maximum": [3, 5], "number": [3, 4, 5, 8, 9, 12], "byte": [3, 4, 5, 9], "try": [3, 5, 7, 9, 12], "one": [3, 5, 8, 9, 12], "1": [3, 5, 6, 7, 12], "turn": [3, 5, 7, 9, 12], "off": [3, 5, 7, 9], "valu": [3, 4, 5, 9, 12], "higher": [3, 5], "larg": [3, 5, 9], "amount": [3, 5, 9, 12], "back": [3, 5, 7], "conjunct": [3, 5], "keyword": [3, 5, 9], "default": [3, 5, 6, 7, 9, 12], "search": [3, 5, 9, 10], "iter": [3, 4, 5, 9], "incom": [3, 5], "scan": [3, 5], "reduc": [3, 5], "collater": [3, 5], "cost": [3, 5], "up": [3, 5, 8, 9, 12], "irrespect": [3, 5], "specifi": [3, 4, 5, 9, 12], "elaps": [3, 5], "indefinit": [3, 5, 6, 12], "until": [3, 5], "member": [3, 5], "stop": [3, 5, 9], "sy": [3, 5, 6, 9, 12], "some_command": [3, 5], "fout": [3, 5], "mylog": [3, 5], "wb": [3, 5], "3": [3, 5, 6, 11, 12], "ll": [3, 5], "decod": [3, 5], "utf": [3, 5], "8": [3, 5, 7], "logfile_read": [3, 5], "logfile_send": [3, 5], "sent": [3, 5, 7, 8], "sometim": [3, 5, 7, 8], "onli": [3, 5, 7, 9, 11, 12], "To": [3, 5, 9], "ignor": [3, 5, 9, 12], "sighup": [3, 5, 9], "signal": [3, 4, 5, 9], "0": [3, 5, 11, 12], "delaybeforesend": [3, 5, 7], "overcom": [3, 5], "experienc": [3, 5], "typic": [3, 4, 5, 8, 9], "immedi": [3, 5, 7], "fact": [3, 5], "wouldn": [3, 5], "human": [3, 5, 7, 10, 12], "keyboard": [3, 5, 7], "introduc": [3, 5, 9], "slight": [3, 5], "delai": [3, 5, 7], "seem": [3, 5, 7], "sleep": [3, 5], "20th": [3, 5], "50": [3, 5], "enough": [3, 5], "old": [3, 5, 9], "note": [3, 5, 9, 12], "clever": [3, 5], "find": [3, 5, 8, 10], "path": [3, 5, 9], "same": [3, 5, 6, 7], "logic": [3, 5], "exit": [3, 4, 5, 9, 10], "statu": [3, 5, 9], "store": [3, 5], "self": [3, 5], "exitstatu": [3, 5, 9], "signalstatu": [3, 5], "abnorm": [3, 5], "detail": [3, 5, 7], "wifexit": [3, 5], "wexitstatu": [3, 5], "wifsign": [3, 5], "termsig": [3, 5], "disabl": [3, 5, 6, 7, 9], "repeat": [3, 5, 9], "desir": [3, 5], "enabl": [3, 5, 9], "later": [3, 5, 9], "setecho": [3, 5, 9], "waitnoecho": [3, 5, 9], "howev": [3, 5, 9, 11], "solari": [3, 5, 9, 10], "possibl": [3, 5, 7, 9, 12], "launch": [3, 5, 9], "e": [3, 5, 9], "g": [3, 5, 9], "reset": [3, 5, 9], "inherit": [3, 5], "handler": [3, 5], "seen": [3, 5, 7, 9], "entri": [3, 5], "tupl": [3, 5], "row": [3, 5, 9], "column": [3, 5, 9], "unspecifi": [3, 5], "ptyprocess": [3, 5, 9], "appli": [3, 5], "poll": [3, 5, 9], "1024": [3, 5, 9], "async_": [3, 6, 9], "kw": 3, "seek": 3, "overload": 3, "sever": [3, 9], "stringtyp": 3, "re": [3, 9, 12], "those": [3, 9], "index": [3, 10, 12], "success": 3, "avoid": [3, 9], "add": [3, 4, 5, 7, 9], "condit": [3, 12], "chosen": 3, "leftmost": 3, "foobar": 3, "p": [3, 5], "bar": 3, "affect": [3, 7], "sinc": [3, 9, 12], "arriv": 3, "unpredict": 3, "chunk": 3, "avail": [3, 9, 11, 12], "onc": [3, 8, 9], "part": [3, 7, 9], "final": 3, "late": 3, "instanc": [3, 6, 9], "matchobject": 3, "view": [3, 12], "preced": 3, "On": [3, 5, 6, 7, 9], "catch": 3, "bad": 3, "do_someth": 3, "elif": [3, 12], "do_something_els": 3, "do_some_other_th": 3, "do_something_completely_differ": 3, "finish": [3, 4, 12], "optim": 3, "speed": [3, 9], "asyncio": [3, 6, 9], "coroutin": [3, 9], "yield": [3, 6, 9], "give": [3, 6, 8, 9, 12], "insid": 3, "With": [3, 12], "pattern_list": 3, "similar": [3, 4, 5, 8], "plain": 3, "regular": [3, 5, 8, 12], "express": [3, 5, 8, 12], "faster": [3, 12], "limit": [3, 7, 9, 12], "end": [3, 4, 10], "worri": 3, "escap": [3, 9], "contain": [3, 9, 12], "everi": 3, "otherwis": [3, 7], "compile_pattern_list": 3, "sre_pattern": 3, "empti": [3, 12], "thu": 3, "cpl": 3, "pl": 3, "within": [3, 9], "my_pattern": 3, "some_condit": 3, "written": [3, 4, 5, 9], "canon": [3, 7], "unless": [3, 5, 9], "backspac": 3, "prior": [3, 9], "transmit": 3, "linux": [3, 5, 7, 9], "4096": 3, "defin": 3, "n_tty_buf_s": 3, "honor": 3, "definit": 3, "pc_max_canon": 3, "osx": 3, "256": 3, "opensolari": 3, "1920": 3, "freebsd": 3, "discov": [3, 9], "fpathconf": 3, "import": [3, 5, 6, 9, 12], "per": 3, "subsequ": [3, 9], "discard": 3, "bel": [3, 10], "imaxbel": 3, "termio": 3, "driver": [3, 12], "behav": [3, 9, 12], "alwai": [3, 9, 12], "altogeth": 3, "stty": 3, "icanon": 3, "base64": [3, 7], "x": [3, 5, 7, 9], "5000": 3, "wrap": [3, 4, 6, 9], "linesep": [3, 4], "append": [3, 4], "docstr": [3, 7, 9], "writelin": [3, 4, 9], "element": [3, 4], "produc": [3, 4, 12], "sendcontrol": 3, "char": 3, "helper": 3, "mnemon": 3, "access": [3, 7], "ctrl": 3, "ascii": 3, "7": [3, 6, 11], "bell": 3, "sendintr": 3, "sendeof": [3, 4, 9], "pend": 3, "parent": [3, 7], "signifi": [3, 12], "begin": 3, "newlin": [3, 6, 12], "caller": 3, "ensur": [3, 9], "sigint": 3, "less": [3, 9], "hit": [3, 8], "obtain": 3, "neg": 3, "omit": 3, "reach": [3, 5, 9, 12], "encount": [3, 9], "readlin": [3, 7, 9], "cr": [3, 10], "lf": [3, 10], "rn": 3, "unix": [3, 4, 9, 12], "pseudotti": 3, "contrari": 3, "read_nonblock": [3, 9], "complet": [3, 6, 7, 9], "period": 3, "refer": 3, "least": [3, 9, 12], "100": [3, 8, 9], "right": [3, 5, 9, 12], "awai": [3, 5], "99": 3, "hand": 3, "megabyt": 3, "fill": 3, "regardless": 3, "wrapper": [3, 5, 6, 9], "around": [3, 5], "escape_charact": 3, "x1d": 3, "input_filt": 3, "output_filt": 3, "keystrok": 3, "simpli": [3, 9], "bsd": [3, 8, 9], "prevent": [3, 5, 9], "filter": 3, "arrai": 3, "too": [3, 9], "meth": 3, "window": [3, 9, 10, 11], "sigwinch": [3, 9], "struct": 3, "fcntl": 3, "def": 3, "sigwinch_passthrough": 3, "sig": [3, 4], "pack": 3, "hhhh": 3, "unpack": 3, "ioctl": 3, "tiocgwinsz": 3, "setwins": [3, 9], "global": 3, "commun": [3, 5], "binari": 3, "kill": [3, 4, 9, 12], "keep": 3, "tradit": 3, "mislead": 3, "necessarili": [3, 5], "nice": 3, "move": [3, 10], "onto": 3, "sigkil": 3, "liter": 3, "forev": 3, "unread": [3, 9], "word": [3, 7, 12], "technic": 3, "alreadi": [3, 5, 6, 9], "previous": [3, 9], "determin": [3, 9], "getwins": [3, 9], "col": 3, "physic": 3, "report": [3, 7, 10], "awar": 3, "vi": 3, "respond": [3, 7, 10], "getecho": 3, "often": [3, 7, 9], "Not": 3, "lost": [3, 7], "cat": [3, 7], "1234": 3, "twice": [3, 5], "again": [3, 5, 9], "itself": [3, 5, 12], "abcd": 3, "wxyz": 3, "WILL": 3, "flag": [3, 12], "detect": [3, 8, 9, 12], "pid": [3, 9], "child_fd": 3, "By": [3, 7], "act": 3, "both": [3, 12], "spawnu": [3, 9], "backward": [3, 8], "arbitrari": 3, "accept": [3, 5], "despit": 3, "str": [3, 6, 9, 12], "withexitstatu": 3, "extra_arg": 3, "kwarg": 3, "combin": [3, 12], "command_output": 3, "apach": 3, "daemon": 3, "local": [3, 5, 8, 9], "machin": [3, 5, 8], "apachectl": 3, "svn": 3, "ci": [3, 9], "commit": 3, "my_fil": 3, "py": [3, 6, 8, 9], "captur": [3, 8], "remot": [3, 5, 8, 9], "secret": 3, "usernam": [3, 5, 9], "mencod": [3, 12], "rip": 3, "dvd": 3, "progress": 3, "tick": 3, "5": 3, "print_tick": 3, "event_count": 3, "avi": 3, "oac": 3, "ovc": 3, "either": [3, 6, 9, 12], "dictionari": [3, 5], "whenev": 3, "associ": 3, "delic": 3, "order": [3, 5], "preserv": 3, "necessari": 3, "callback": [3, 9], "variabl": [3, 8, 9], "continu": [3, 6, 9], "next": [3, 5, 6], "error": [3, 5, 7, 9], "exce": [3, 8], "exceptionpexpect": 3, "filenam": 3, "tri": [3, 5], "environ": [3, 9], "split_command_lin": 3, "command_lin": 3, "split": [3, 9], "space": 3, "embed": 3, "doublequot": 3, "imposs": 3, "wrote": [3, 7], "pars": [3, 8], "cmd": [4, 5, 9], "constant": [4, 9, 12], "consid": 5, "paramiko": 5, "redexpect": 5, "speak": 5, "protocol": 5, "doesn": [5, 9], "extra": [5, 6, 12], "complex": 5, "via": [5, 9], "addition": 5, "extrem": 5, "fast": 5, "comparison": 5, "familiar": 5, "api": [5, 9, 10], "fairli": 5, "interchang": 5, "extend": 5, "login": [5, 7, 8, 9, 12], "logout": 5, "debug_command_str": 5, "variou": [5, 9, 12], "tricki": 5, "handl": [5, 7, 8, 9], "certif": 5, "public": [5, 7, 9], "kei": [5, 7, 9], "authent": [5, 7, 9], "won": 5, "synchron": 5, "host": [5, 8, 9, 12], "robust": 5, "uniqu": [5, 6, 9], "born": 5, "csh": 5, "style": [5, 6, 9, 12], "few": [5, 7, 8, 9], "getpass": 5, "hostnam": 5, "raw_input": 5, "uptim": [5, 8], "df": 5, "show": 5, "stricthostkeycheck": 5, "userknownhostsfil": 5, "dev": [5, 9], "null": 5, "agent": [5, 9], "develop": [5, 9, 10], "lead": 5, "lot": [5, 12], "manag": 5, "xdm": 5, "gdm": 5, "kdm": 5, "gui": 5, "dialog": 5, "box": [5, 9], "popup": 5, "dure": [5, 9], "force_password": 5, "configur": [5, 9], "suit": 5, "confirm": 5, "correct": [5, 9], "unicod": [5, 9], "regex": [5, 9, 12], "auto_prompt_reset": 5, "manual": 5, "sysadmin": 5, "eg": 5, "dict": 5, "terminal_typ": 5, "original_prompt": 5, "login_timeout": 5, "port": [5, 9], "ssh_kei": [5, 9], "quiet": 5, "sync_multipli": 5, "check_local_ip": 5, "password_regex": [5, 9], "passphras": 5, "ssh_tunnel": [5, 8, 9], "spawn_local_ssh": [5, 9], "sync_original_prompt": [5, 9], "ssh_config": [5, 9], "easili": [5, 8], "optimist": 5, "fool": 5, "reliabl": 5, "exactli": 5, "Of": [5, 12], "dai": 5, "motd": 5, "zero": 5, "length": [5, 9], "hushlogin": 5, "trick": 5, "guess": 5, "Then": [5, 8], "blindli": 5, "inhibit": 5, "unique_prompt": 5, "plai": 5, "traffic": 5, "straight": 5, "activ": 5, "trigger": [5, 6], "privat": 5, "client": [5, 9, 12], "config": [5, 9], "here": [5, 9, 12], "post": 5, "issu": [5, 9, 10], "prepend": 5, "network": 5, "namespac": 5, "ip": [5, 8], "netn": 5, "vlan2": 5, "vlan": 5, "job": 5, "cut": 5, "eras": 5, "content": [5, 10], "attempt": [5, 9], "basic": 5, "press": 5, "record": 5, "slow": 5, "worst": 5, "12": 5, "low": 5, "latenc": 5, "sync": 5, "wors": 5, "high": 5, "multipli": 5, "500": 5, "set_unique_prompt": 5, "unambigu": 5, "somehow": 5, "su": 5, "altern": [5, 9], "k": 6, "cmd_or_spawn": 6, "orig_prompt": 6, "prompt_chang": 6, "new_prompt": 6, "continuation_prompt": 6, "extra_init_cmd": 6, "repl": [6, 9], "format": [6, 8], "posit": 6, "insert": 6, "initialis": 6, "pager": 6, "run_command": [6, 9], "trail": 6, "valueerror": 6, "long": [6, 7, 9], "async": [6, 9], "bool": 6, "unlik": [6, 10], "ps1": 6, "r": [6, 9, 12], "ps2": 6, "conveni": [6, 9], "rh": 7, "worker": 7, "successfulli": [7, 12], "adam": 7, "kerrison": 7, "explicitli": [7, 9, 12], "critic": [7, 9], "secur": 7, "deal": 7, "But": [7, 12], "peopl": [7, 9, 12], "pp": 7, "assword": 7, "my_password": 7, "had": [7, 9], "between": [7, 8, 9, 12], "step": 7, "bug": [7, 9], "mimic": 7, "app": [7, 12], "tune": 7, "fix": [7, 9], "everyon": 7, "far": [7, 9], "older": 7, "appl": 7, "maco": 7, "di": [7, 12], "directori": [7, 8, 9, 12], "last": 7, "demonstr": [7, 8, 12], "perfectli": 7, "deni": [7, 12], "publickei": 7, "happi": 7, "due": [7, 9], "poor": 7, "fulli": 7, "exact": 7, "vari": 7, "under": [8, 9], "tarbal": 8, "learn": [8, 12], "descript": 8, "topip": 8, "netstat": 8, "calcul": 8, "statist": 8, "inet": 8, "excess": 8, "email": 8, "alert": 8, "threshold": 8, "drop": 8, "munin": 8, "plugin": 8, "stand": 8, "alon": [8, 12], "cron": [8, 9], "busi": [8, 9], "web": 8, "denial": 8, "servic": 8, "attack": 8, "multipl": [8, 9, 12], "browser": 8, "fewer": 8, "simultan": 8, "hive": 8, "collect": [8, 9], "dozen": 8, "reboot": 8, "classic": 8, "subshel": 8, "bookmark": 8, "site": [8, 12], "openbsd": [8, 12], "i386": 8, "monitor": 8, "passmass": [8, 9], "greet": 8, "pretti": 8, "useless": [8, 12], "tunnel": [8, 9], "restart": 8, "goe": 8, "down": 8, "singl": [8, 9], "group": 8, "wide": 8, "varieti": 8, "earlier": 9, "pr": 9, "579": 9, "truncat": [9, 10], "increas": 9, "minor": 9, "cleanup": 9, "improv": 9, "portabl": 9, "580": 9, "581": 9, "582": 9, "583": 9, "584": 9, "585": 9, "chain": 9, "gphull": 9, "606": 9, "traceback": 9, "snippet": 9, "str_last_char": 9, "rather": 9, "598": 9, "warn": 9, "ad": 9, "537": 9, "doc": 9, "updat": 9, "longer": 9, "neither": 9, "562": 9, "528": 9, "563": 9, "542": 9, "498": 9, "501": 9, "addit": 9, "abl": 9, "304": 9, "490": 9, "crlf": 9, "493": 9, "492": 9, "concern": 9, "474": 9, "banner": 9, "468": 9, "request": 9, "473": 9, "structur": 9, "2424": 9, "localhost": 9, "22": 9, "2525": 9, "dynam": 9, "8888": 9, "sock": 9, "treat": 9, "472": 9, "sensit": 9, "forward": 9, "thread": [9, 10], "460": 9, "signific": 9, "464": 9, "466": 9, "load": 9, "bashrc": 9, "coupl": 9, "locat": 9, "457": 9, "unset": 9, "prompt_command": 9, "interfer": 9, "459": 9, "integr": 9, "431": 9, "recognis": 9, "spell": 9, "similarli": 9, "becam": 9, "_async": 9, "450": 9, "garbag": 9, "347": 9, "376": 9, "417": 9, "446": 9, "447": 9, "shlex": 9, "433": 9, "434": 9, "383": 9, "386": 9, "clean": 9, "invalid": 9, "backslash": 9, "430": 9, "445": 9, "452": 9, "395": 9, "document": [9, 10], "ed": 9, "target": 9, "rel": 9, "mirror": 9, "348": 9, "regress": 9, "capabl": 9, "359": 9, "experiment": 9, "caveat": 9, "enhanc": 9, "176": 9, "211": 9, "122": 9, "being": 9, "absolut": 9, "sudo": 9, "104": 9, "multiprocess": 9, "86": 9, "independ": 9, "top": 9, "level": 9, "fsm": 9, "alongsid": 9, "left": 9, "alias": 9, "behaviour": [9, 12], "mechan": 9, "bit": 9, "37": 9, "psh": 9, "evid": 9, "flexibl": 9, "typeerror": 9, "got": 9, "67": 9, "correctli": 9, "49": 9, "smarto": 9, "bugfix": 9, "ioerror": 9, "especi": [9, 12], "44": 9, "svr4": 9, "therefor": 9, "intend": 9, "bigger": 9, "refactor": 9, "38": 9, "accident": 9, "broken": 9, "workaround": 9, "tiocswinsz": 9, "40": 9, "43": 9, "reassign": 9, "synchronis": 9, "28": 9, "pickl": 9, "34": 9, "33": 9, "somewhat": 9, "major": 9, "indic": [9, 12], "deliber": 9, "endeavour": 9, "break": 9, "exist": 9, "mainten": 9, "dormanc": 9, "caution": 9, "warrant": 9, "codebas": 9, "thank": 9, "kimmo": 9, "parviainen": 9, "jalanko": 9, "patch": 9, "readthedoc": 9, "travi": 9, "No": 9, "bound": 9, "__del__": 9, "0xd248c": 9, "anymor": 9, "michael": 9, "surett": 9, "greatli": 9, "my_command": 9, "1000": 9, "subtl": 9, "choos": 9, "tweak": 9, "consist": 9, "sampl": 9, "j": 9, "abil": 9, "integ": 9, "ttys1": 9, "o_rdwr": 9, "o_nonblock": 9, "o_noctti": 9, "atz0": 9, "profil": 9, "rval": 9, "ok": [9, 12], "renam": 9, "effect": 9, "set_echo": 9, "send_eof": 9, "realli": 9, "__spawn": 9, "cygwin": 9, "silenc": 9, "__version__": 9, "__revision__": 9, "cv": 9, "mainli": 9, "log_open": 9, "log_clos": 9, "setlog": 9, "techniqu": [9, 12], "drastic": 9, "funki": 9, "indigest": 9, "headach": 9, "expect_eof": 9, "gone": 9, "natur": 9, "quirk": 9, "incomplet": 9, "delet": 9, "third": 9, "leak": 9, "peculiar": 9, "recycl": 9, "thought": 9, "lowest": 9, "filedescriptor": 9, "hundr": 9, "2011": 9, "thoma": 9, "kluyver": 9, "u": 9, "he": 9, "taken": 9, "wrong": 9, "approach": 9, "project": 9, "2013": 9, "jeff": 9, "quast": 9, "agre": 9, "live": 9, "tool": [10, 11, 12], "nor": 10, "design": [10, 12], "overview": 10, "convent": 10, "bewar": 10, "debug": 10, "faq": 10, "histori": 10, "page": 10, "pypi": 11, "pip": 11, "Or": 11, "easy_instal": 11, "download": 12, "recurs": 12, "anonym": 12, "lcd": 12, "cd": 12, "pub": 12, "readm": 12, "bye": 12, "obvious": 12, "ftplib": 12, "complic": 12, "someon": 12, "predefin": 12, "ordinarili": 12, "sai": 12, "reject": 12, "fragment": 12, "my_secret_password": 12, "vt100": 12, "eventu": 12, "minut": 12, "120": 12, "ahead": 12, "perspect": 12, "ye": 12, "surpris": 12, "dumb": 12, "xterm": 12, "world": 12, "intercept": 12, "convert": 12, "hex": 12, "0d": 12, "0a": 12, "skip": 12, "past": 12, "w": 12, "And": 12, "explain": 12, "hard": 12, "paus": 12, "momentarili": 12, "implicitli": 12, "greedi": 12, "minim": 12, "dotal": 12, "star": 12, "ambigu": 12, "delimit": 12, "digit": 12, "satisfi": 12, "pattern1": 12, "pattern2": 12, "pattern3": 12, "thrown": 12, "assign": 12, "flavor": 12, "virtual": 12, "ident": 12, "practic": 12, "distinguish": 12, "throw": 12, "quietli": 12, "reli": 12, "pseudotermin": 12, "cross": 12, "offer": 12, "winpexpect": 12, "wexpect": 12, "unmaintain": 12, "hidden": 12, "consol": 12}, "objects": {"": [[3, 0, 0, "-", "pexpect"]], "pexpect": [[3, 1, 1, "", "EOF"], [3, 1, 1, "", "ExceptionPexpect"], [3, 1, 1, "", "TIMEOUT"], [1, 0, 0, "-", "fdpexpect"], [4, 0, 0, "-", "popen_spawn"], [5, 0, 0, "-", "pxssh"], [6, 0, 0, "-", "replwrap"], [3, 5, 1, "", "run"], [3, 1, 1, "id0", "spawn"], [3, 5, 1, "", "split_command_line"], [3, 5, 1, "", "which"]], "pexpect.fdpexpect": [[1, 1, 1, "", "fdspawn"]], "pexpect.fdpexpect.fdspawn": [[1, 2, 1, "", "__init__"], [1, 2, 1, "", "close"], [1, 2, 1, "", "expect"], [1, 2, 1, "", "expect_exact"], [1, 2, 1, "", "expect_list"], [1, 2, 1, "", "isalive"]], "pexpect.popen_spawn": [[4, 1, 1, "", "PopenSpawn"]], "pexpect.popen_spawn.PopenSpawn": [[4, 2, 1, "", "__init__"], [4, 2, 1, "", "expect"], [4, 2, 1, "", "expect_exact"], [4, 2, 1, "", "expect_list"], [4, 2, 1, "", "kill"], [4, 2, 1, "", "send"], [4, 2, 1, "", "sendeof"], [4, 2, 1, "", "sendline"], [4, 2, 1, "", "wait"], [4, 2, 1, "", "write"], [4, 2, 1, "", "writelines"]], "pexpect.pxssh": [[5, 1, 1, "", "ExceptionPxssh"], [5, 1, 1, "", "pxssh"]], "pexpect.pxssh.pxssh": [[5, 3, 1, "", "PROMPT"], [5, 2, 1, "", "__init__"], [5, 3, 1, "", "force_password"], [5, 2, 1, "", "login"], [5, 2, 1, "", "logout"], [5, 3, 1, "", "options"], [5, 2, 1, "", "prompt"], [5, 2, 1, "", "set_unique_prompt"], [5, 2, 1, "", "sync_original_prompt"]], "pexpect.replwrap": [[6, 4, 1, "", "PEXPECT_PROMPT"], [6, 1, 1, "", "REPLWrapper"], [6, 5, 1, "", "bash"], [6, 5, 1, "", "python"]], "pexpect.replwrap.REPLWrapper": [[6, 2, 1, "", "run_command"]], "pexpect.spawn": [[3, 2, 1, "", "__init__"], [3, 3, 1, "", "child_fd"], [3, 2, 1, "", "close"], [3, 2, 1, "", "compile_pattern_list"], [3, 2, 1, "", "eof"], [3, 2, 1, "", "expect"], [3, 2, 1, "", "expect_exact"], [3, 2, 1, "", "expect_list"], [3, 2, 1, "", "getecho"], [3, 2, 1, "", "getwinsize"], [3, 2, 1, "", "interact"], [3, 2, 1, "", "isalive"], [3, 2, 1, "", "kill"], [3, 3, 1, "", "logfile"], [3, 3, 1, "", "logfile_read"], [3, 3, 1, "", "logfile_send"], [3, 3, 1, "", "pid"], [3, 2, 1, "", "read"], [3, 2, 1, "", "read_nonblocking"], [3, 2, 1, "", "readline"], [3, 2, 1, "", "send"], [3, 2, 1, "", "sendcontrol"], [3, 2, 1, "", "sendeof"], [3, 2, 1, "", "sendintr"], [3, 2, 1, "", "sendline"], [3, 2, 1, "", "setecho"], [3, 2, 1, "", "setwinsize"], [3, 2, 1, "", "terminate"], [3, 2, 1, "", "wait"], [3, 2, 1, "", "waitnoecho"], [3, 2, 1, "", "write"], [3, 2, 1, "", "writelines"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:data", "5": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "data", "Python data"], "5": ["py", "function", "Python function"]}, "titleterms": {"faq": 0, "fdpexpect": 1, "us": [1, 4], "pexpect": [1, 3, 4, 10, 12], "file": 1, "descriptor": 1, "fdspawn": 1, "class": [1, 3, 4, 5], "api": [2, 12], "document": 2, "core": 3, "compon": 3, "spawn": 3, "control": [3, 5, 6, 7], "child": [3, 7], "process": 3, "handl": 3, "unicod": 3, "run": 3, "function": 3, "except": [3, 12], "util": 3, "popen_spawn": 4, "pipe": 4, "subprocess": 4, "popenspawn": 4, "pxssh": 5, "an": 5, "ssh": [5, 7], "session": 5, "replwrap": 6, "read": 6, "eval": 6, "print": 6, "loop": 6, "common": 7, "problem": 7, "thread": 7, "time": 7, "issu": 7, "send": 7, "sendlin": 7, "truncat": 7, "output": 7, "just": 7, "befor": 7, "exit": 7, "solari": 7, "doe": 7, "receiv": 7, "full": 7, "input": 7, "emit": 7, "bel": 7, "exampl": 8, "histori": 9, "releas": 9, "version": [9, 10], "4": [9, 10], "8": [9, 10], "7": 9, "6": 9, "5": 9, "3": 9, "1": 9, "2": 9, "0": 9, "backward": 9, "incompat": 9, "chang": 9, "move": 9, "fork": 9, "indic": 10, "tabl": 10, "instal": 11, "requir": 11, "overview": 12, "special": 12, "eof": 12, "timeout": 12, "pattern": 12, "find": 12, "end": 12, "line": 12, "cr": 12, "lf": 12, "convent": 12, "bewar": 12, "debug": 12, "window": 12}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1, "sphinx.ext.viewcode": 1, "sphinx": 57}, "alltitles": {"FAQ": [[0, "faq"]], "fdpexpect - use pexpect with a file descriptor": [[1, "module-pexpect.fdpexpect"]], "fdspawn class": [[1, "fdspawn-class"]], "API documentation": [[2, "api-documentation"]], "Core pexpect components": [[3, "module-pexpect"]], "spawn class": [[3, "spawn-class"]], "Controlling the child process": [[3, "controlling-the-child-process"]], "Handling unicode": [[3, "handling-unicode"]], "run function": [[3, "run-function"]], "Exceptions": [[3, "exceptions"], [12, "exceptions"]], "Utility functions": [[3, "utility-functions"]], "popen_spawn - use pexpect with a piped subprocess": [[4, "module-pexpect.popen_spawn"]], "PopenSpawn class": [[4, "popenspawn-class"]], "pxssh - control an SSH session": [[5, "pxssh-control-an-ssh-session"]], "pxssh class": [[5, "pxssh-class"]], "replwrap - Control read-eval-print-loops": [[6, "module-pexpect.replwrap"]], "Common problems": [[7, "common-problems"]], "Threads": [[7, "threads"]], "Timing issue with send() and sendline()": [[7, "timing-issue-with-send-and-sendline"]], "Truncated output just before child exits": [[7, "truncated-output-just-before-child-exits"]], "Controlling SSH on Solaris": [[7, "controlling-ssh-on-solaris"]], "child does not receive full input, emits BEL": [[7, "child-does-not-receive-full-input-emits-bel"]], "Examples": [[8, "examples"]], "History": [[9, "history"]], "Releases": [[9, "releases"]], "Version 4.8": [[9, "version-4-8"]], "Version 4.7": [[9, "version-4-7"]], "Version 4.6": [[9, "version-4-6"]], "Version 4.5": [[9, "version-4-5"]], "Version 4.4": [[9, "version-4-4"]], "Version 4.3.1": [[9, "version-4-3-1"]], "Version 4.3": [[9, "version-4-3"]], "Version 4.2.1": [[9, "version-4-2-1"]], "Version 4.2": [[9, "version-4-2"]], "Version 4.0": [[9, "version-4-0"]], "Backwards incompatible changes": [[9, "backwards-incompatible-changes"]], "Version 3.3": [[9, "version-3-3"]], "Version 3.2": [[9, "version-3-2"]], "Version 3.1": [[9, "version-3-1"]], "Version 3.0": [[9, "version-3-0"]], "Version 2.4": [[9, "version-2-4"]], "Version 2.3": [[9, "version-2-3"]], "Moves and forks": [[9, "moves-and-forks"]], "Pexpect version 4.8": [[10, "pexpect-version-version"]], "Indices and tables": [[10, "indices-and-tables"]], "Installation": [[11, "installation"]], "Requirements": [[11, "requirements"]], "API Overview": [[12, "api-overview"]], "Special EOF and TIMEOUT patterns": [[12, "special-eof-and-timeout-patterns"]], "Find the end of line \u2013 CR/LF conventions": [[12, "find-the-end-of-line-cr-lf-conventions"]], "Beware of + and * at the end of patterns": [[12, "beware-of-and-at-the-end-of-patterns"]], "Debugging": [[12, "debugging"]], "Pexpect on Windows": [[12, "pexpect-on-windows"]]}, "indexentries": {"__init__() (pexpect.fdpexpect.fdspawn method)": [[1, "pexpect.fdpexpect.fdspawn.__init__"]], "close() (pexpect.fdpexpect.fdspawn method)": [[1, "pexpect.fdpexpect.fdspawn.close"]], "expect() (pexpect.fdpexpect.fdspawn method)": [[1, "pexpect.fdpexpect.fdspawn.expect"]], "expect_exact() (pexpect.fdpexpect.fdspawn method)": [[1, "pexpect.fdpexpect.fdspawn.expect_exact"]], "expect_list() (pexpect.fdpexpect.fdspawn method)": [[1, "pexpect.fdpexpect.fdspawn.expect_list"]], "fdspawn (class in pexpect.fdpexpect)": [[1, "pexpect.fdpexpect.fdspawn"]], "isalive() (pexpect.fdpexpect.fdspawn method)": [[1, "pexpect.fdpexpect.fdspawn.isalive"]], "module": [[1, "module-pexpect.fdpexpect"], [3, "module-pexpect"], [4, "module-pexpect.popen_spawn"], [5, "module-pexpect.pxssh"], [6, "module-pexpect.replwrap"]], "pexpect.fdpexpect": [[1, "module-pexpect.fdpexpect"]], "eof (class in pexpect)": [[3, "pexpect.EOF"]], "exceptionpexpect (class in pexpect)": [[3, "pexpect.ExceptionPexpect"]], "timeout (class in pexpect)": [[3, "pexpect.TIMEOUT"]], "__init__() (pexpect.spawn method)": [[3, "pexpect.spawn.__init__"]], "child_fd (pexpect.spawn attribute)": [[3, "pexpect.spawn.child_fd"]], "close() (pexpect.spawn method)": [[3, "pexpect.spawn.close"]], "compile_pattern_list() (pexpect.spawn method)": [[3, "pexpect.spawn.compile_pattern_list"]], "eof() (pexpect.spawn method)": [[3, "pexpect.spawn.eof"]], "expect() (pexpect.spawn method)": [[3, "pexpect.spawn.expect"]], "expect_exact() (pexpect.spawn method)": [[3, "pexpect.spawn.expect_exact"]], "expect_list() (pexpect.spawn method)": [[3, "pexpect.spawn.expect_list"]], "getecho() (pexpect.spawn method)": [[3, "pexpect.spawn.getecho"]], "getwinsize() (pexpect.spawn method)": [[3, "pexpect.spawn.getwinsize"]], "interact() (pexpect.spawn method)": [[3, "pexpect.spawn.interact"]], "isalive() (pexpect.spawn method)": [[3, "pexpect.spawn.isalive"]], "kill() (pexpect.spawn method)": [[3, "pexpect.spawn.kill"]], "logfile (pexpect.spawn attribute)": [[3, "pexpect.spawn.logfile"]], "logfile_read (pexpect.spawn attribute)": [[3, "pexpect.spawn.logfile_read"]], "logfile_send (pexpect.spawn attribute)": [[3, "pexpect.spawn.logfile_send"]], "pexpect": [[3, "module-pexpect"]], "pid (pexpect.spawn attribute)": [[3, "pexpect.spawn.pid"]], "read() (pexpect.spawn method)": [[3, "pexpect.spawn.read"]], "read_nonblocking() (pexpect.spawn method)": [[3, "pexpect.spawn.read_nonblocking"]], "readline() (pexpect.spawn method)": [[3, "pexpect.spawn.readline"]], "run() (in module pexpect)": [[3, "pexpect.run"]], "send() (pexpect.spawn method)": [[3, "pexpect.spawn.send"]], "sendcontrol() (pexpect.spawn method)": [[3, "pexpect.spawn.sendcontrol"]], "sendeof() (pexpect.spawn method)": [[3, "pexpect.spawn.sendeof"]], "sendintr() (pexpect.spawn method)": [[3, "pexpect.spawn.sendintr"]], "sendline() (pexpect.spawn method)": [[3, "pexpect.spawn.sendline"]], "setecho() (pexpect.spawn method)": [[3, "pexpect.spawn.setecho"]], "setwinsize() (pexpect.spawn method)": [[3, "pexpect.spawn.setwinsize"]], "spawn (class in pexpect)": [[3, "id0"], [3, "pexpect.spawn"]], "split_command_line() (in module pexpect)": [[3, "pexpect.split_command_line"]], "terminate() (pexpect.spawn method)": [[3, "pexpect.spawn.terminate"]], "wait() (pexpect.spawn method)": [[3, "pexpect.spawn.wait"]], "waitnoecho() (pexpect.spawn method)": [[3, "pexpect.spawn.waitnoecho"]], "which() (in module pexpect)": [[3, "pexpect.which"]], "write() (pexpect.spawn method)": [[3, "pexpect.spawn.write"]], "writelines() (pexpect.spawn method)": [[3, "pexpect.spawn.writelines"]], "popenspawn (class in pexpect.popen_spawn)": [[4, "pexpect.popen_spawn.PopenSpawn"]], "__init__() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.__init__"]], "expect() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.expect"]], "expect_exact() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.expect_exact"]], "expect_list() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.expect_list"]], "kill() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.kill"]], "pexpect.popen_spawn": [[4, "module-pexpect.popen_spawn"]], "send() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.send"]], "sendeof() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.sendeof"]], "sendline() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.sendline"]], "wait() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.wait"]], "write() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.write"]], "writelines() (pexpect.popen_spawn.popenspawn method)": [[4, "pexpect.popen_spawn.PopenSpawn.writelines"]], "exceptionpxssh (class in pexpect.pxssh)": [[5, "pexpect.pxssh.ExceptionPxssh"]], "prompt (pexpect.pxssh.pxssh attribute)": [[5, "pexpect.pxssh.pxssh.PROMPT"]], "__init__() (pexpect.pxssh.pxssh method)": [[5, "pexpect.pxssh.pxssh.__init__"]], "force_password (pexpect.pxssh.pxssh attribute)": [[5, "pexpect.pxssh.pxssh.force_password"]], "login() (pexpect.pxssh.pxssh method)": [[5, "pexpect.pxssh.pxssh.login"]], "logout() (pexpect.pxssh.pxssh method)": [[5, "pexpect.pxssh.pxssh.logout"]], "options (pexpect.pxssh.pxssh attribute)": [[5, "pexpect.pxssh.pxssh.options"]], "pexpect.pxssh": [[5, "module-pexpect.pxssh"]], "prompt() (pexpect.pxssh.pxssh method)": [[5, "pexpect.pxssh.pxssh.prompt"]], "pxssh (class in pexpect.pxssh)": [[5, "pexpect.pxssh.pxssh"]], "set_unique_prompt() (pexpect.pxssh.pxssh method)": [[5, "pexpect.pxssh.pxssh.set_unique_prompt"]], "sync_original_prompt() (pexpect.pxssh.pxssh method)": [[5, "pexpect.pxssh.pxssh.sync_original_prompt"]], "pexpect_prompt (in module pexpect.replwrap)": [[6, "pexpect.replwrap.PEXPECT_PROMPT"]], "replwrapper (class in pexpect.replwrap)": [[6, "pexpect.replwrap.REPLWrapper"]], "bash() (in module pexpect.replwrap)": [[6, "pexpect.replwrap.bash"]], "pexpect.replwrap": [[6, "module-pexpect.replwrap"]], "python() (in module pexpect.replwrap)": [[6, "pexpect.replwrap.python"]], "run_command() (pexpect.replwrap.replwrapper method)": [[6, "pexpect.replwrap.REPLWrapper.run_command"]]}})