From owner-freebsd-questions Tue Oct 6 20:20:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA17404 for freebsd-questions-outgoing; Tue, 6 Oct 1998 20:20:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lemieux.hockey.net (lemieux.hockey.net [209.98.94.246]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA17123 for ; Tue, 6 Oct 1998 20:18:53 -0700 (PDT) (envelope-from orpheus@lemieux.hockey.net) Received: (from orpheus@localhost) by lemieux.hockey.net (8.8.7/8.8.7) id WAA03167; Tue, 6 Oct 1998 22:22:29 -0500 Message-ID: <19981006222227.E2042@lemieux.hockey.net> Date: Tue, 6 Oct 1998 22:22:27 -0500 From: Jeffrey Dunitz To: Mike Ekholm Cc: freebsd-questions@FreeBSD.ORG Subject: Re: talk to cuaa0 References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: ; from Mike Ekholm on Mon, Oct 05, 1998 at 08:06:55AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Oct 05, 1998 at 08:06:55AM -0500, Mike Ekholm said something like: > On Sun, 4 Oct 1998, Steve Howe wrote: > > > On Sun, 4 Oct 1998, Mike Ekholm wrote: > > (some stuff about getting his computer to talk to his UPS) (steve howe saying some stuff about writing to device files) > > > > I have tried this, but I was unable to get the output from cuaa0, so I > gave up on it. Was there something I was missing? I've never tried this on a a freebsd machine, but on something else (Domain/OS? NeXTstep? I dunno) I've been able to do something like this: #!/bin/sh echo "blah" > /dev/cuaa0 cat > blah.log < /dev/cuaa0 Of course, the _real_ way to do something like this is with expect. I've never used expect, and I don't know anything about it, other than it can be used to simulate interactivity noninteractively. A kermit script should work, too, if you can figure out how to make it ignore DTR and stuff--I bet that's what's hanging you up. Again, I've never done kermit scripts on a freebsd machine--only DOS, where I was able to make kermit log into uiowa's dialup pool, log into my ISCABBS account, and suck down my mail for me. At 2400 baud, over a long distance phone call, during xmas break...oh, I digress. Anyway, kermit scripting and logging should work fine for this, and may be easier than learning expect (depending on how involved you need to get). I hope this helps...sorry for my early-90's historical digression. :) > > -Mike > > -- > ekholm@nospam.visi.com | http://www.visi.com/~ekholm | quake:Nalez > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > nospam is valid, filter provided by my isp http://www.visi.com > Check my all new home page at http://www.visi.com/~ekholm/ > Unix is user-friendly, not beginner-friendly. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Jeffrey Dunitz | Current Job: | orpheus@avalon.net BOFH Emeritus, Avalon Networks | Network Engineer | Eagan, MN, USA http://www.avalon.net/~orpheus | EXi Corporation | 651-523-6992 (work) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message