From owner-freebsd-questions Sun Sep 22 12:05:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA08314 for questions-outgoing; Sun, 22 Sep 1996 12:05:26 -0700 (PDT) Received: from buffnet4.buffnet.net (root@buffnet4.buffnet.net [205.246.19.13]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA08058 for ; Sun, 22 Sep 1996 12:05:04 -0700 (PDT) Received: from buffnet1.buffnet.net (mmdf@buffnet1.buffnet.net [205.246.19.10]) by buffnet4.buffnet.net (8.6.12/8.6.9) with SMTP id OAA05955 for ; Sun, 22 Sep 1996 14:06:43 GMT Received: from buffnet7.buffnet.net by buffnet1.buffnet.net id aa27737; 22 Sep 96 15:09 EDT Date: Sun, 22 Sep 1996 15:09:41 -0400 (EDT) From: Stephen Hovey To: Leonard Chung cc: questions@freebsd.org Subject: Re: Default speed of cuaa*? In-Reply-To: <1.5.4.32.19960922024430.00672bec@pacbell.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sat, 21 Sep 1996, Leonard Chung wrote: > Is there any way to set the default speed of the tunnel devices? I have a > shell script that reads and writes to a 2400 BPS modem, but since the > default speed of the /dev/cuaa0 device seems to be 9600 BPS, the modem and > the script can't communicate. For example, if I type "cu -l /dev/cuaa0 -s > 2400", then I can talk to the modem fine. But if I type "cu -l /dev/cuaa0" > and don't specify a speed, then the port speed gets set to 9600. Is there > any way I can change the default speed, or set the speed of the cuaa device > from within a shell script? I dont know the correct way - but I have found that once you have the /dev/cuaa? device open - either as a file in C or as a redrect to a shell script (ie /dir/myscript