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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -