From owner-freebsd-questions Mon Dec 20 11: 4:16 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by hub.freebsd.org (Postfix) with SMTP id 486021535A for ; Mon, 20 Dec 1999 11:04:12 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 12547 invoked from network); 20 Dec 1999 19:04:08 -0000 Received: from userbe91.uk.uudial.com (HELO marder-1.) (62.188.142.13) by smtp.dial.pipex.com with SMTP; 20 Dec 1999 19:04:08 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.8.8) id TAA00805; Mon, 20 Dec 1999 19:04:06 GMT (envelope-from mark) Date: Mon, 20 Dec 1999 19:04:06 +0000 From: Mark Ovens To: Dan Larsson Cc: "[FreeBSD-Questions-List] (E-post)" Subject: Re: press any key to continue in sh Message-ID: <19991220190406.B322@marder-1> References: <01BF4B21.FD8A5A90.dl@tyfon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <01BF4B21.FD8A5A90.dl@tyfon.net> Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Dec 20, 1999 at 07:39:53PM +0100, Dan Larsson wrote: > How do I best produce a 'press any key to continue' prompt in sh? > Try this: #!/bin/sh echo Press any key to continue read answer echo Continued! The only limitation is that you have to press RETURN after "any key" (unless "any key" happens to be RETURN ;) ). I'm not sure of a way of doing it without having to press RETURN in sh(1). HTH > Regards > ------------ > Dan Larsson > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- "there's a long-standing bug relating to the x86 architecture that allows you to install Windows too ;" -Matthew D. Fuller ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message