From owner-freebsd-questions Wed Aug 9 10:41:30 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id KAA21366 for questions-outgoing; Wed, 9 Aug 1995 10:41:30 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.FreeBSD.org (8.6.11/8.6.6) with SMTP id KAA21359 for ; Wed, 9 Aug 1995 10:41:28 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA16262; Wed, 9 Aug 95 11:33:35 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9508091733.AA16262@cs.weber.edu> Subject: Re: setting tty speed permanently To: kuku@gilberto.physik.rwth-aachen.de (Christoph P. Kukulies) Date: Wed, 9 Aug 95 11:33:35 MDT Cc: freebsd-questions@freefall.freebsd.org In-Reply-To: <199508091015.MAA28646@gilberto.physik.rwth-aachen.de> from "Christoph P. Kukulies" at Aug 9, 95 12:15:19 pm X-Mailer: ELM [version 2.4dev PL52] Sender: questions-owner@FreeBSD.org Precedence: bulk > What I never understood: Why is it not possible to set the > tty speed of a /dev/ttyd0,cuaa0 line permanently. > Whenever I do a stty speed 600 -f /dev/ttyd0 I see that the > baud rate is not being set. > > Reason behind this: I want to send out (via cat) a file to > the serial device but that device has to run at > a specific baudrate. Well, the "via cat" is your problem. In reality, you want to use a shell script. If you are familiar with Bourne shell programming, you can: 1) open the serial port by redirecting data from it to a file descriptor. 2) stty the serial port to set it up 3) cat the data to the serial port 4) close the descriptor > I tried to put a corresponding line into /etc/ttys > (std.600) to no avail. Yeah, the ttys line is the rate that getty sets when it succeeds on open and has nothing to do with the default rates. You *can* set the default rate in /etc/rc.serial; check the sio man page. This is not recommended by me. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.