Example of using pty to control a process?
morphex
morphex at gmail.com
Wed Jan 5 20:48:31 EST 2005
Hi,
I'm trying to get the output from the command top on Linux, using
python. I'd like to start top, get a page of output, and then send top
the letter 'q' to end the process.
Looking around I've figured that the module pty can be used for this,
however, I can't find any good examples of how to use it.
Any ideas as to where I can look?
Thanks,
Morten
More information about the Python-list
mailing list