LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Pause, hit key to continue, then proceed... (https://www.linuxquestions.org/questions/linux-newbie-8/pause-hit-key-to-continue-then-proceed-4175415346/)

stevo520 07-06-2012 10:54 PM

Pause, hit key to continue, then proceed...
 
I am able to get this warning on the screen, but I need to set it where the user needs to hit a key to continue which will complete some other commands that I have ready. This is what I have so far.


tput clear
tput cup 10 18; echo "THIS SCRIPT REQUIRES BASH"

towheedm 07-06-2012 11:59 PM

You can use the READ command for that:
Code:

read -p "Press any key to continue "


All times are GMT -5. The time now is 06:14 PM.