Search code examples
bashshellcommand-lineaws-cli

How to skip the exit code after executing a command in shell script?


I have a shell script that includes several commands. For some of them, after it has been executed, I have to press P to quit the hint then the next command could proceed. Picture1 Picture2

I want to know how to exit the hint automatically after the command gets executed, or input the keyword P automatically to exit it.

Thanks.


Solution

  • you can basically pipe it to cat just like following:

    $ ./deploy_eb_dev.sh | cat