Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-06-2012, 11:54 PM   #1
LQ Newbie
Registered: Jun 2012
Posts: 9

Rep: Reputation: Disabled
Cool 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"
Old 07-07-2012, 12:59 AM   #2
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
You can use the READ command for that:
read -p "Press any key to continue "


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make shell script wait for a particular key pressed in order to proceed? Caed Lucin Linux - General 5 01-31-2010 07:08 PM
Perl - Press Any Key To Continue nobody123 Linux - Newbie 4 04-06-2009 07:52 PM
How to make shell script wait for key press to proceed... ddenton Linux - General 13 12-02-2008 05:25 AM
pause yum update and continue later av.dubey Linux - Newbie 5 07-10-2008 03:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration