Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!agate!agate!adrianho From: adrianho@barkley.berkeley.edu (Adrian J Ho) Newsgroups: comp.unix.wizards Subject: Re: how to check port settings on a Sun Message-ID: Date: 25 May 91 09:49:21 GMT References: <837@hartmanis.albany.edu> <1991May23.191124.359@st-andy.uucp> Sender: root@agate.berkeley.edu (Charlie Root) Distribution: usa Organization: University of California, Berkeley Lines: 38 In-Reply-To: larry@st-andy.uucp's message of 23 May 91 19: 11:24 GMT In article <1991May23.191124.359@st-andy.uucp> larry@st-andy.uucp (Larry Martell) writes: >In article <837@hartmanis.albany.edu> kevind@cs.albany.edu (Kevin M. Dombroski) writes: >>Folks, >> How do I change/check the port settings on a Sun 3/50? I've been told >>"stty mode > /dev/ttya" will change the settings; how do I check this? I've >>tried "stty -a < /dev/ttya", which has no effect. Please let me know. Thanks. >The BSD stty (which you will run by default - it's in /bin) will not change >or check the settings of anything other then the tty you are executing it >from. Huh? Works fine for me (/dev/ttya is hooked up to a VT220): # stty -a > /dev/ttya [...] isig iexten icanon -xcase echo echoe echok -echonl -noflsh -tostop [...] # stty -echo > /dev/ttya # stty -a > /dev/ttya [...] isig iexten icanon -xcase -echo echoe echok -echonl -noflsh -tostop [...] > The System V stty (it lives in /usr/5bin), however, will do exactly >what you want. To change port settings execute: > "/usr/5bin/stty mode > /dev/ttya". RTFM, and make that: /usr/5bin/stty mode < /dev/ttya Your way will _really_ set "mode" on the tty you're executing it from. Kevin's problem was in the way he was _querying_; he should have done: stty -a > /dev/ttya -- ----------------------------------------------------------------------------- Adrian Ho, EECS (pronounced "eeks!") Dept. Phone: (415) 642-5563 UC Berkeley adrianho@barkley.berkeley.edu