From owner-freebsd-questions Sun Oct 4 23:54:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA20451 for freebsd-questions-outgoing; Sun, 4 Oct 1998 23:54:17 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from abc.xyz.net (froggy.anchorage.ptialaska.net [208.151.119.238]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA20351 for ; Sun, 4 Oct 1998 23:53:59 -0700 (PDT) (envelope-from groggy@iname.com) Received: from localhost (localhost [127.0.0.1]) by abc.xyz.net (8.8.8/8.8.8) with SMTP id WAA03362; Sun, 4 Oct 1998 22:54:19 -0800 (AKDT) (envelope-from groggy@iname.com) Date: Sun, 4 Oct 1998 22:54:18 -0800 (AKDT) From: Steve Howe X-Sender: abc@abc.xyz.net To: Mike Ekholm 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, 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message