Im trying to automate few CLI commands,
Here is manual way. I open terminal, use a command, which dont response right away but after some time, and then that command ask 2 types of few questions. 1- y/n (i type y or n and without pressing enter it continues to ask next question) 2- second type of question require me to paste a long string and require me to press enter to ask next question
I tried to automate above with macOs's own Terminal but failed as i'm unable to get the content/state of the terminal so i can answer the question accordingly.
Can i achieve this with iTerm2?