From owner-freebsd-questions Fri Jun 5 21:54:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA20155 for freebsd-questions-outgoing; Fri, 5 Jun 1998 21:54:49 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from myname.my.domain (cplkagan.GlobalEyes.net [209.60.64.59]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA20142 for ; Fri, 5 Jun 1998 21:54:42 -0700 (PDT) (envelope-from parrothd@midwest.net) Received: from parrothd.houselan.net ([192.168.1.30]) by myname.my.domain (8.8.7/8.8.7) with SMTP id XAA00265; Fri, 5 Jun 1998 23:55:21 GMT (envelope-from parrothd@midwest.net) Message-Id: <3.0.5.32.19980604235803.00924220@midwest.net> X-Sender: parrothd@midwest.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Thu, 04 Jun 1998 23:58:03 -0500 To: MetcalJM@utrc.utc.com, questions@FreeBSD.ORG From: "Jonathan E. Lyons" Subject: Re: Initializing a modem Cc: metcalf@snet.net In-Reply-To: Mime-Version: 1.0 Content-Type: text/enriched; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG look at cu...I use cu -s 57600 -l /dev/cuaa0 to check my scripts.... At 02:39 PM 6/5/98 -0400, MetcalJM@utrc.utc.com wrote: >Hi, > >I was wondering if FreeBSD has any utilities or if someone has written a >very >simple program to send AT strings to a modem on a sio? serial port. >Currently I am using ijjppp in term mode to write the strings and that >works fine. Unfortunately, I would like to send the AT string to the >modem >non-interactively from a script. I can use 'expect' to get the job done >with >ijjppp, but that seems to be a bit of a kludge. In the past, I have >tried >writing directly to the raw device, > >eg. echo "ATZ" > /dev/cuaa0 > >but that seems to put the modem in a funny state. Also, since I can't >see >the return message (OK) with this method, I never knew if it really >worked. > >Is there a standard FreeBSD utility to do what I'm looking to do? If >not, >does anyone have any _simple_ C code I can hack to do this? > >Many Regards, > >JM >> ------------- >> Jeffrey M. Metcalf >> United Technologies Research Center >> metcaljm@utrc.utc.com >> (860) 610-7576 >> >> >> > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > Jon Lyons parrothd@midwest.net 87 HONDA VFR700 http://cplkagan.dyn.ml.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message