0

I am trying to write a shell script to execute various commands automatically for my app. There is one scenario where am blocked.

For example there is a command which requires a yes/no command line input to complete execution. For this I have used echo "yes" | <commmand> and it works fine.

Similarly I have a scenario where I have to press an enter to get the command prompt back after executing a command, to proceed. Please give me some hints on how to make my script do this automatically.

rghome
  • 8,529
  • 8
  • 43
  • 62

0 Answers0