From: sverre@research.nokia.com (Sverre Slotte)
To: zsh-workers@math.gatech.edu
Subject: SUMMARY: read with timeout?
Date: Mon, 13 Nov 1995 15:10:36 +0200 [thread overview]
Message-ID: <9511131310.AA29410@nike.spices> (raw)
Last week I asked:
Is there a way to give the read-command (in zsh) a timeout-value?
I got two answers. Vinnie Shelton <shelton@icd.teradyne.com> suggested
I use expect, and Karl Vogel <vogelke@c17mis.wpafb.af.mil> recommended
grabchars (from comp.sources.misc volume 12).
Both of these will obviously work with any shell.
Expect seemed like overkill, so I had a closer look at grabchars. It
does exactly what I want. In fact, it does things I didn't even know I
wanted:
grabchars -ccfmos -df -t10 -L
^ ^ ^ ^
| | | |
| | | +---- fold to lower case
| | +--------- timeout 10 seconds
| +------------- default value `f'
+--------------------- valid characters
The binary is small and compact, 24576 bytes on SunOS (dyn.linked).
This version of grabchars is rather old: 1.9. (Copyright (c) 1988,
1989, 1990, Dan Smith). Does anyone know of a newer version?
Thanks for your help,
Sverre
----------------------------------------------------------------------------
Sverre Slotte Internet: sverre@research.nokia.com
Nokia Research Center Phone: + 358 0 43766208
P.O.Box 45, 00211 Helsingfors, Finland Phax: + 358 0 43766856
----------------------------------------------------------------------------
"Kajakken er uten sammenligning den ypperste enkeltmannsfarkost som finnes."
-- Fritjof Nansen 1891
next reply other threads:[~1995-11-13 13:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-13 13:10 Sverre Slotte [this message]
1995-11-13 13:15 Sverre Slotte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9511131310.AA29410@nike.spices \
--to=sverre@research.nokia.com \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).