Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!emory!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.questions Subject: Re: get terminal speed from shell script Message-ID: <12688@hydra.gatech.EDU> Date: 17 Aug 90 09:22:45 GMT References: <1990Aug17.034401.12720@jts.com> Organization: Georgia Institute of Technology Lines: 41 in article <1990Aug17.034401.12720@jts.com>, gerry@jts.com (Gerry Roderick Singleton ) says: > Hmm, that's true when you're in a window. I did not interpret the > original question as being window specific but the more general > case of working with ttys and pttys. The script DOES work for real I was on a 'screen' window on one host, doing an rlogin to the SUN. I was not in a window as far as the Sun was concerned, although rlogin was probably using a socket. This saved me the trouble of being physically at the Sun. Are you saying this is stll justified behavior for the Sun? Rlogin- ing to a Mac A/UX, or even back to my host, does not cause problems w/stty. > ttys and ti even works on pttys over RPC links. Here's the output > under these circumstances as executed with /bin/sh -vx foo, where foo > is the four lines above: > #! /bin/sh > speed=`stty speed &1` > + stty speed > speed=9600 > echo $speed > + echo 9600 > 9600 > I have no window system solution, so I hope one of the window system > gurus can help. The previously posted solutions of speed=`stty speed 3>&1 1>&2 2>&3` or speed=`/usr/5bin/stty speed` work. -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu