get terminal speed from shell script

BURNS,JIM gt0178a at prism.gatech.EDU
Wed Aug 15 15:42:34 AEST 1990


in article <1990Aug14.181010.29571 at jts.com>, gerry at jts.com (Gerry Roderick Singleton ) says:
> #! /bin/sh
> 
> speed=`stty speed </dev/tty 2>&1`
> echo $speed

Nope, on SunOS 4.0, you get:

{richsun12:/usr}
[196] t=`stty speed </dev/tty 2>&1`
{richsun12:/usr}
[197] echo $t
stty: Operation not supported on socket
{richsun12:/usr}
[198]
-- 
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a at prism.gatech.edu



More information about the Comp.unix.wizards mailing list