/ Published in: Python
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
import pexpect
password = open("config/qlive.auth", "r").readline().strip()
p = pexpect.spawn("sudo bash install_dynamicctrl.sh")
i = p.expect([".ssword:*", pexpect.EOF])
p.sendline(password)
Comments
 Subscribe to comments
                    Subscribe to comments
                
                