I am trying to call a script within my bash script which needs Ctrl+c Signal to stop. I need to stop that using Ctrl+c only when I see repeated output behavior from the called Script and then continue with the rest of the script.
FLOW of Script A.sh:
1. environment setup for A.sh
2. call script B.sh
3. If you see repeated behavior in the output pattern of the called script B.sh, send Ctrl+c
4. continue with the rest of script code.