[102438] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Pause for keystroke

daemon@ATHENA.MIT.EDU (Don Knott)
Thu Dec 3 02:14:18 1998

Date: Thu, 3 Dec 1998 02:12:42 -0500 (EST)
From: Don Knott <dknott@treco.net>
To: RedHat List <redhat-list@redhat.com>
In-Reply-To: <36663853.F9F87E32@nook.net>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Wed, 2 Dec 1998, Ramon Gandia wrote:

> I am writing a shell (sh) script, and I want it to pause
> for a keystroke to resume.  Something like this snippet
> of pseudo-code:
> 
> #
> echo "insert floppy disk now"
> echo "press any key when ready"
> pause for keystroke
> mount /mnt/floppy
> #
> 
> How does something like this get put into a script

echo "Press enter to continue"
read keypress

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Don Knott, Treasure Coast Internet - http://www.treco.net
759 S Federal Highway - Suite 316 - Stuart, FL 34994-2923
Stuart: 286-6998    Ft. Pierce: 879-6177    Fax: 286-7089
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post