Date: Sun, 22 Sep 1996 15:09:41 -0400 (EDT) From: Stephen Hovey <shovey@buffnet.net> To: Leonard Chung <Leonard@pacbell.net> Cc: questions@freebsd.org Subject: Re: Default speed of cuaa*? Message-ID: <Pine.BSI.3.95.960922150751.8095L-100000@buffnet7.buffnet.net> In-Reply-To: <1.5.4.32.19960922024430.00672bec@pacbell.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 </dev/cuaa0) that you can then issue and stty on it that will stick. so if I have a script called /dir/myscript that I call by saying: /dir/myscript </dev/cuaa0 Then on my first line of myscript I can say: stty -f /dev/cuaa0 2400
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.960922150751.8095L-100000>