Xref: utzoo comp.unix.wizards:23428 comp.unix.questions:24626 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!munnari.oz.au!metro!wolfen!hls0!george From: george@hls0.hls.oz (George Turczynski) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: get terminal speed from shell script Summary: Use Sys V stty... Message-ID: <849@hls0.hls.oz> Date: 14 Aug 90 00:36:45 GMT References: <90Aug12.135618edt.18763@me.utoronto.ca> <1990Aug13.005849.23223@jarvis.csri.toronto.edu> Lines: 29 On SunOS 4.0.3 (and probably the rest too), if you have installed /usr/5bin then use: speed=`/usr/5bin/stty speed` in your shell scripts. This works. By the way, the SUN manuals point out quite clearly that "the settings are reported on the standard error." for /bin/stty, and "the settings are reported on the standard output" for /usr/5bin/stty. Be sure to re-read the manual to check that the different versions apply to the device you want. ie /bin/stty sets/reports the stdout device, whilst /usr/5bin/stty sets/reports the stdin device. Hope this is of some use to you... -- | George P. J. Turczynski. |---------------------------------------------------- | Computer Systems Engineer. | ACSnet: george@highland.oz | I can't speak for the | | Highland Logic Pty. Ltd. | Phone: +61 48 683490 | company, I can barely | | Suite 1, 348-354 Argyle St | Fax: +61 48 683474 | speak for myself... | | Moss Vale. NSW. Australia. 2577 |----------------------------------------------------