[comp.unix.wizards] Is "line -t n" common?

belkin@teecs.UUCP (Hershel Belkin) (01/31/91)

A simple question perhaps, but can anyone tell me if the "-t"
option is "standard" on the "line" command, or is it an extension
added by HP on HP-UX?  It provides for a "time-out" termination of
the command if nothing is received...ie.  line -t 5  will wait 
about 5 seconds for a response, then exit with returned status of "1"
indicating that no input was read.

Although this option works on HP-UX, it is undocumented even in their
manuals!  I'd like to use it, but might opt not to if this is
non-standard (or at least not common :-)

Thanks for any insights!

+-----------------------------------------------+-------------------------+
| Hershel Belkin               hp9000/825(HP-UX)| UUCP: teecs!belkin      |
| Test Equipment Engineering Computing Services |Phone: 416 249-1231 x2647|
| Litton Systems Canada Limited       (Toronto) |  FAX: 416 246-5233      |
+-----------------------------------------------+-------------------------+

tchrist@convex.COM (Tom Christiansen) (01/31/91)

From the keyboard of belkin@teecs.UUCP (Hershel Belkin):
:A simple question perhaps, but can anyone tell me if the "-t"
:option is "standard" on the "line" command...

    % line
    line: Command not found.

I'd make sure line were standard before worrying about its flags.

--tom
--
"Hey, did you hear Stallman has replaced /vmunix with /vmunix.el?  Now
 he can finally have the whole O/S built-in to his editor like he
 always wanted!" --me (Tom Christiansen <tchrist@convex.com>)

rbj@uunet.UU.NET (Root Boy Jim) (02/01/91)

In article <30090001@teecs.UUCP> belkin@teecs.UUCP (Hershel Belkin) writes:
> [paraphrased] Is -t standard on line, or is it an HP extension?

Line seems to ignore its arguments on our Sequent, Pyramid, and Suns.
The first two are dual universe mishmash based on 4.2BSD and SVr?v?,
while the Suns are probably as up to date as any vendor can get.
Neither does it work on a DECSTATION-3100 running Ultrik V2.1.
Not a bad idea though. Next they'll add a prompt I guess.
-- 

	Root Boy Jim Cottrell <rbj@uunet.uu.net>
	Close the gap of the dark year in between