Im using an expect script to say xyz.exp to login to a remote host and execute another script abc.sh
Now most of the times abc.sh runs fine, but there is a scenario where if a certain condition is not fulfilled, the script stops and needs couple of user inputs and then resumes.
Is there any way to handle this situation such that the expect script xyz.exp can interactively solve this issue as well ?
If this does occur both the scripts hang and I've to close the terminal and do some rework.