Article View: aus.computers.linux
Article #57015Re: BASH scripts.
From: Herbert Xu
Date: Sun, 24 Nov 1996 00:00
Date: Sun, 24 Nov 1996 00:00
24 lines
1407 bytes
1407 bytes
Andrew Matherl wrote:
>
> This may be a foolish question, but is there a command similar to the
> DOS "pause" that will halt execution of the script and then start it
> again when the enter(or any other) key is pressed ?
You can try waiting for an enter with "read".
If you really want to read any key, try grabbing
the Unix FAQ from rtfm.mit.edu. It's got a section
on how you can read just one char.
Come to think of it, expect or dialog might be able
to do that. So check the docs.
> Or is there another way ?
You can write something in tcl/tk if you use X.
--
Debian GNU/Linux 1.1 is out! { http://www.debian.org/ }
Email: Herbert Xu ~{PmV>HI~} <herbert@greathan.apana.org.au>
{ http://greathan.apana.org.au/~herbert/ }
PGP Key: pgp-public-keys@pgp.mit.edu or any other key sites
Technical Details
Message-ID:
<3297D29E.4281B1F6@greathan.apana.org.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<576hq0$jnq@miranda.its.deakin.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,de88c444ecbadd8b X-Google-Attributes: gid102983,public From: Herbert Xu <herbert@greathan.apana.org.au> Subject: Re: BASH scripts. Date: 1996/11/24 Message-ID: <3297D29E.4281B1F6@greathan.apana.org.au> X-Deja-AN: 198372515 cache-post-path: gondor.apana.org.au!herbert@greathan.apana.org.au references: <576hq0$jnq@miranda.its.deakin.edu.au> content-type: text/plain; charset=us-ascii organization: Core mime-version: 1.0 newsgroups: aus.computers.linux x-mailer: Mozilla 3.0Gold (X11; I; Linux 2.1.10 i586)