Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!columbia!cs!dupuy
From: dupuy@cs.columbia.edu (Alexander Dupuy)
Newsgroups: comp.unix.ultrix
Subject: Re: can't do stty speed into a pipe or file on Ultrix 3.x
Message-ID: 
Date: 27 Sep 89 18:46:50 GMT
References: <11582@watcgl.waterloo.edu> <11599@watcgl.waterloo.edu>
Sender: dupuy@cs.columbia.edu
Reply-To: dupuy@cs.columbia.edu
Distribution: comp
Organization: Columbia University Computer Science Department
Lines: 18
In-reply-to: idallen@watcgl.waterloo.edu's message of 25 Sep 89 02:19:15 GMT

Here's what I had to do to get the terminal speed from ultrix

CSH

	alias stty "sh -c 'stty \!* 2>&1 1>&0'"
	alias ttyspeed "stty |sed -n 's/.*speed \([0-9]*\).*/\1/p'"

KSH

	alias ttyspeed="stty 2>&1 1>&0 | sed -n 's/.*speed \([0-9]*\).*/\1/p'"

Pretty gross, eh?

@alex
--
-- 
inet: dupuy@cs.columbia.edu
uucp: ...!rutgers!cs.columbia.edu!dupuy