Spawned objects
Members
- command
- command string representing the spawned process
- pid
- integer of the process identifier of the spawned process
- pty
- string containing the device name connected to
the spawned process
- buffer
- the input buffer
- match
- the current matched portion of the buffer
- stty
- set terminal values
[1]
Methods
- close
- close the input stream to the spawned process and wait for it
to exit gracefully
- cont
- expect
- fileno
- return the file descriptor associated with the object -
this is the return value of
exp_spawn()
- getfile
- return a Python file object representing the I/O to the
process
- interact
- send
- send a character buffer to the process
1.
There is a bug
with using stty with spawned objects.