From owner-freebsd-questions Mon Oct 5 06:07:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA02892 for freebsd-questions-outgoing; Mon, 5 Oct 1998 06:07:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mixer.visi.com (mixer.visi.com [209.98.98.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA02886 for ; Mon, 5 Oct 1998 06:07:22 -0700 (PDT) (envelope-from ekholm@visi.com) Received: from isis.visi.com (ekholm@isis.visi.com [209.98.98.8]) by mixer.visi.com (8.8.8/8.7.5) with ESMTP id IAA22516; Mon, 5 Oct 1998 08:07:00 -0500 (CDT) Posted-Date: Mon, 5 Oct 1998 08:07:00 -0500 (CDT) Received: from localhost (ekholm@localhost) by isis.visi.com (8.8.8/8.8.8) with SMTP id IAA08813; Mon, 5 Oct 1998 08:06:55 -0500 (CDT) X-Authentication-Warning: isis.visi.com: ekholm owned process doing -bs Date: Mon, 5 Oct 1998 08:06:55 -0500 (CDT) From: Mike Ekholm To: Steve Howe cc: freebsd-questions@FreeBSD.ORG Subject: Re: talk to cuaa0 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 4 Oct 1998, Steve Howe wrote: > On Sun, 4 Oct 1998, Mike Ekholm wrote: > > > I am trying to get a UPS monitoring system going, and in order to do this, > > I need to send "s" to /dev/cuaa0 set at 1200bps and log the output to a > > file. I am trying to get this done with cron, but I have not been able to > > find a non interactive way of doing this. Everything I have tried requires > > some user input. I am thinking kermit, but so far once I do "connect" the > > script stops working. > > i'm going to get killed for saying this, but you can just "echo s > > /dev/cuaa0". eeks. from experience, i find i can use the com ports just > like any other file as long as the speeds are below 9600. faster than > that, and you start losing characters. this is on lightly loaded > machines. and this is only a quick hack. i guess my point is that you > shouldn't be afraid to use them. everyone will tell you there are better > methods, and i'm not going to argue. a simple shell script will > suffice ... + cron. > 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? -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