I am trying to automate the CLI menu on Linux system where at many points i have to provide based the condition.
i have prompt with ': '
, I am trying to match (111.222.333.444)the string (printed in child.before) below,
111.222.333.444
:
if the string matches then i need can send another command (sendlind). however I am not sure how to achieve this with python pexpect. if any body can explain or provide an example it would be good help.