Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 1998 22:22:27 -0500
From:      Jeffrey Dunitz <orpheus@lemieux.hockey.net>
To:        Mike Ekholm <ekholm@visi.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: talk to cuaa0
Message-ID:  <19981006222227.E2042@lemieux.hockey.net>
In-Reply-To: <Pine.GSO.4.02.9810050804080.8739-100000@isis.visi.com>; from Mike Ekholm on Mon, Oct 05, 1998 at 08:06:55AM -0500
References:  <Pine.BSF.3.96.981004224533.3032A-100000@abc.xyz.net> <Pine.GSO.4.02.9810050804080.8739-100000@isis.visi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981006222227.E2042>