From owner-freebsd-questions Mon Oct 20 10:23:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA06723 for questions-outgoing; Mon, 20 Oct 1997 10:23:57 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA06718 for ; Mon, 20 Oct 1997 10:23:52 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id KAA04340; Mon, 20 Oct 1997 10:23:33 -0700 (PDT) Date: Mon, 20 Oct 1997 10:23:33 -0700 (PDT) From: Doug White Reply-To: Doug White To: Steve Hearn cc: questions@FreeBSD.ORG Subject: Re: Changing serial line settings under FreeBSD In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 20 Oct 1997, Steve Hearn wrote: > Can someone tell me the correct format of the stty command to > change serial line parameters. (I'm trying to run a serial printer > and need to make it xon, xoff and change baud rate). Are you using lpr for this? There is a printcap capability to set the serial settings. I think it's the `ty' capability. See printcap(5). I use LPRng, a replacement lpr daemon, which uses a different syntax for specifying serial setup, so I can't give you specifics here. > Both forms are 'accepted' but don't actually change the baud rate. > > I've tried moving the rc.serial file to stop 'locking' style stty commands > on > the /dev/cuala0 locking device at boot time . Also tried putting the above > stty command in a simplified rc.serial file. Take a look at the bottom lines in rc.serial. > Is there something else that is preventing me from changing the parameters. You **must** modify the intial device, not the standard device. When you close the standard device, it resets the settings to the initial device's settings. So make sure you're manipulating the /dev/cuaia? devices if you're goign to play with stty. I'd recommend looking at your printing system first and make sure it isn't set up to handle this already. Serial printers used to be very common, so most printing software should handle it OK. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major