Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 1997 00:41:56 +0930
From:      Mike Smith <mike@smith.net.au>
To:        Jon Hamilton <hamilton@pobox.com>
Cc:        Terry Lambert <tlambert@primenet.com>, hackers@FreeBSD.ORG
Subject:   Re: Timeout for sh(1) 'read' ?? 
Message-ID:  <199709261511.AAA01871@word.smith.net.au>
In-Reply-To: Your message of "Fri, 26 Sep 1997 07:58:02 EST." <199709261259.FAA03276@hub.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> } > 
> } >  - 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?)
...
> You can do this kind of thing with background processes and trap, but
> it's not what you'd call pretty, and even that isn't as straightforward
> as it might sound.

In other words, it would be a good thing for read to have a timeout 
option : correct?  Any objections?

mike





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709261511.AAA01871>