Seek help

How Python and command line interactive input and output?
For example, I execute a command, command line to return to the content and the subsequent options, I want to read the content, and enter the corresponding option on the command line to continue.

The process is probably:
os.system(cmd) - returns the content and options like 1,2,3,4,5, I want to console input 3, continue to implement.

thx!

Started by Mars at February 24, 2016 - 4:48 PM

Please detail the whole process about it! So instead of others to guess what you want to do.!!!

Posted by Jeff at March 06, 2016 - 5:44 PM

Os.system doesn't know

Consider the case of subprocess.

Posted by Bob at March 17, 2016 - 6:18 PM

os.system(command)

Command you use the pipeline.

Posted by Bob at March 27, 2016 - 6:35 PM

Pexpect is not considered?

Posted by Debbie at April 03, 2016 - 7:34 PM