can't do stty speed into a pipe or file on Ultrix 3.x

Alexander Dupuy dupuy at cs.columbia.edu
Thu Sep 28 04:46:50 AEST 1989


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 at cs.columbia.edu
uucp: ...!rutgers!cs.columbia.edu!dupuy



More information about the Comp.unix.ultrix mailing list