automation - Error in python script, written using pexpect modul -
i wrote script in python using pexpect module, used run installer , find text , press enter, when run script, exits without errors, messages , no results.
please see script below:
import pexpect rt ='/opt/installer/setup.bin -i console' child = pexpect.spawn(rt, cwd=os.path.dirname(rt)) child.expect("press <enter> continue:") print(child.before)
can me solve mystery, highly appreciated.
Comments
Post a Comment