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