Date: Sun, 4 Oct 1998 22:54:18 -0800 (AKDT) From: Steve Howe <groggy@iname.com> To: Mike Ekholm <ekholm@visi.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: talk to cuaa0 Message-ID: <Pine.BSF.3.96.981004224533.3032A-100000@abc.xyz.net> In-Reply-To: <Pine.GSO.4.02.9810042000060.25609-100000@isis.visi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.981004224533.3032A-100000>