python - Wrapping a script with subprocess.Popen() -
I have a script that is provided with any other software package - which I do not modify in any way Would like to I need to execute this script, provide a password, and then interact with it using the terminal (using raw_input, etc.).
is what you want to use
Pexpect is a Python module for spreading child applications and automatically controlling Pexpect to automate interactive applications such as ssh, ftp, passwd, telnet etc. Could. It can be used for automated setup scripts to duplicate software package installation on different servers. It can be used for automated software testing It should work on any platform that supports the standard Python PTI module. The Pexpect interface is focused on ease of use so simple tasks are easy.
Comments
Post a Comment