From owner-freebsd-isp Tue Feb 17 20:15:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA11156 for freebsd-isp-outgoing; Tue, 17 Feb 1998 20:15:08 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from onyx.atipa.com (user22546@ns.atipa.com [208.128.22.10]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id UAA11083 for ; Tue, 17 Feb 1998 20:14:42 -0800 (PST) (envelope-from freebsd@atipa.com) Received: (qmail-queue invoked by uid 1018); 18 Feb 1998 04:22:44 -0000 Date: Tue, 17 Feb 1998 21:22:44 -0700 (MST) From: Atipa X-Sender: freebsd@dot.ishiboo.com To: freebsd-isp@FreeBSD.ORG Subject: How to set speed on chat/expect script? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, I am using getty std.115200 on our terminal server. In order to get our modems to talk to getty correctly, I need to issue "at&b1". This tells the modem (USR Courier) to fix its serial rate with the tty. If I do this manually with: # cu -l /dev/cuaaX -s 115200 It works perfectly (since cu talks to the port at 115200). I then made a chat script to reset and initailze modems, and ran it like this: # chat -f reset.script < /dev/cuaaX > /dev/cuaaX And it looks like it works fine. However, since the "chat" command is run at 9600 baud (I think; that is what stty says), the modem locks in at 9600 and freezes when getty talks to it at 115200. I tried doing a "stty 115200" before the script, but it did not help. Anyone know how to get around this, or anyone have a working script to reset a modem at a fixed serial rate? I was thinking of doing an tcl/expect script using cu/tip, but that sounds a little too ugly unless I have to. Thanks, Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message