From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from math.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with SMTP id LAA17653 for ; Sun, 12 Nov 1995 11:18:01 +1100 (EST) Received: by math.gatech.edu (5.x/SMI-SVR4) id AA22644; Sat, 11 Nov 1995 19:04:52 -0500 Resent-Date: Sat, 11 Nov 1995 19:05:34 -0500 Old-Return-Path: Date: Sat, 11 Nov 1995 19:05:34 -0500 Message-Id: <199511120005.TAA00574@a_69s.wpafb.af.mil> From: "Karl E. Vogel" To: acs@world.std.com Cc: sverre@research.nokia.com, zsh-workers@math.gatech.edu Subject: Re: zsh: read with timeout? Organization: Control Data Systems Inc. X-Disclaimer: I don't speak for the USAF or Control Data. Resent-Message-Id: <"1mi-E.0.kX5.ZeJfm"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/595 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >> On Thu, 09 Nov 1995 08:37:57 -0500, >> acs@world.std.com said: [Is there a way to give the read-command (in zsh) a timeout-value?] V> I don't know of any way to get zsh to do this. I would get expect from V> ftp.cme.nist.gov:/pub/expect. It's really designed to handle timeouts V> and make decisions based on returned values, and..... all kinds of neat V> stuff. Check out "grabchars" in comp.sources.misc volume 12. It's intended for use in shell scripts where you might want a timeout, default answer, or restricted set of allowed answers for a given prompt. -- Karl Vogel vogelke@c17mis.wpafb.af.mil Control Data Systems, Inc. ASC/YCOA, Wright-Patterson AFB, OH 45433