Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!archer!dwb From: dwb@archer.apple.com (David W. Berry) Newsgroups: comp.unix.aux Subject: Re: Setting serial ports to 19.2 KB Message-ID: <2342@internal.Apple.COM> Date: 12 Jun 89 21:28:27 GMT References: <273@radar.UUCP> Sender: usenet@Apple.COM Organization: Apple Computer Lines: 23 In article <273@radar.UUCP> donn@radar.UUCP (Donn S. Fishbein) writes: >Does anyone know how to set the serial ports to 19200 baud? If you have a dial in line (or for that matter a direct connect line) that you want to run at 19200, you'll have to edit /etc/gettydefs to add a at_19200 or mo_19200, line and link it into the autobaud sequence. You can then change /etc/inittab to set the default for the line to the added entry. If you want it for uucp, you should be able to set the speed in the L.sys and L-devices files to 19200 and have it work as expected. If you want it for cu or tip you're out of luck since they don't understand anything more than 9600. Kermit also doesn't understand 19200 or 38400 (also possible) but since we ship the source for them that can be remedied. Unfortunately, the experiment you tried is rather fruitless because the tty gets set back to it's default state whenever it's not open. You change the parameters, the command completes, the tty gets closed and reset to defaults, you execute another command to find out it's state. What you were trying to accomplish can be done by: ( stty 19200 ; sleep 3600 ) < /dev/tty0 & This forces the tty to be kept open, and thus the stty changes will "stick"