🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1602

Re: Implementing a Timeout During Shell Script Data Entry

#1602
From: Ed McGuire
Date: Wed, 24 Oct 1990 16:20
23 lines
1264 bytes
In article <38020001@hpcuhb.cup.hp.com> morrell@hpcuhb.cup.hp.com (Michael Morrell) writes:

> You might try using the probably undocumented timeout feature of line(1).
> I'm not sure which versions of Un*x have this "feature", but you could check.
> It's used as follows:
> 
>   echo "Prompt\c"      [ or echo -n "Prompt" ]
>   reply=`line -t 10`
> 
> The line command will return after 10 seconds if no input has been detected.

What version if UNIX are you running?  No machine at my site will do it.

	Alliant Concentrix 5.5 (BSD43)		no line(1)
	Apollo Domain/OS SR10.1/BSD43		no line(1)
	Digital ULTRIX 3.1			ignores -t
	Intergraph CLIX 3.0.8 (SYSVR31)		ignores -t
	S.G. IRIX (SYSVR3)			ignores -t
	Stardent OS 2.2 (SYSVR30)		ignores -t
	Sun SunOS (BSD43)			ignores -t
-- 
peace.  -- Ed
"Vote.  Because it's the Right Thing."
Technical Details
Message-ID: <1990Oct24.162012.18039@ccad.uiowa.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!ccad.uiowa.edu!emcguire
References: <4128@kitty.UUCP> <38020001@hpcuhb.cup.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!ccad.uiowa.edu!emcguire
From: emcguire@ccad.uiowa.edu (Ed McGuire)
Newsgroups: comp.unix.shell
Subject: Re: Implementing a Timeout During Shell Script Data Entry
Message-ID: <1990Oct24.162012.18039@ccad.uiowa.edu>
Date: 24 Oct 90 16:20:12 GMT
References: <4128@kitty.UUCP> <38020001@hpcuhb.cup.hp.com>
Organization: CAD-Research, U. of Iowa, Iowa City, Iowa
Lines: 23