From owner-freebsd-hackers Fri Sep 26 00:51:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA18342 for hackers-outgoing; Fri, 26 Sep 1997 00:51:02 -0700 (PDT) Received: from word.smith.net.au (word.smith.net.au [202.0.75.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA18335 for ; Fri, 26 Sep 1997 00:50:57 -0700 (PDT) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id RAA00456 for ; Fri, 26 Sep 1997 17:18:46 +0930 (CST) Message-Id: <199709260748.RAA00456@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: hackers@freebsd.org Subject: Timeout for sh(1) 'read' ?? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 26 Sep 1997 17:18:45 +0930 From: Mike Smith Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hiho folks, a question for the sh(1) studs amongst you : - I want to prompt for input using 'read', and have the read return in some fashion after a timeout. I'd like to do this just using sh, and I'm not too fussed about how hairy it is. Any ideas? (If sh has to be modified to achieve this, would it be a useful thing to bring back?) mike