wexpect-venv/examples
2019-09-24 15:40:53 +02:00
..
cmd_wrapper.py [CLN] clean up around the example scripts 2019-09-06 11:52:11 +02:00
foo.py [CLN] clean up around the example scripts 2019-09-06 11:52:11 +02:00
hello_wexpect.py [CLN] clean up around the example scripts 2019-09-06 11:52:11 +02:00
python.py [CLN] clean up around the example scripts 2019-09-06 11:52:11 +02:00
README.md [CLN] clean up around the example scripts 2019-09-06 11:52:11 +02:00

wexpect examples

There are several example usage of wexpect. Choose one as template of your application.

hello_wexpect

hello_wexpect is the simplest example. It starts a windows command interpreter (aka. cmd) lists the current directory and exits.

python

python is a full custom example code. This example script runs foo python program, and communicates with it. For better understanding please run natively foo.py first, which is a very basic stdio handler script.

cmd_wrapper

cmd_wrapper is a simple wrapper around the cmd windows command interpreter. It waits for commands executes them in the spawned cmd, and prints the results.