I am learning how to use pexpect and i had a question. I am trying to find the version number of a remote server and based on that version number I want to choose the right driver number. I am not entirely sure how should I go about doing this. Something along the lines of a getline function. Let me know if there are any functions I could use
Share
The child
.beforeand.afterproperties contain the stdout before resp. after the matched expectation.Which of the commands requires input? If it is the driver installation you could use fabric & fexpect: