Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 1999 13:54:29 -0600
From:      Tim <tim@futuresouth.com>
To:        Jonathan Chen <jonc@logisticsoftware.co.nz>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how to ignore break/signals on serial port
Message-ID:  <19991206135429.C7542@futuresouth.com>
In-Reply-To: <19991207085209.C4124@jonc.logisticsoftware.co.nz>
References:  <19991205221852.A19286@futuresouth.com> <19991207085209.C4124@jonc.logisticsoftware.co.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
  you're a genius.  Thanks!

  Tim

On Tue, Dec 07, 1999 at 08:52:09AM +1300, Jonathan Chen wrote:
> On Sun, Dec 05, 1999 at 10:18:52PM -0600, Tim Tsai wrote:
> 
> > I am trying to log serial data with a script that like this:
> > 
> > #!/bin/sh
> > stty -f /dev/cuaa0 raw
> > nohup cat -u /dev/cuaa0 >> cuaa0.cap &
> > 
> > unfortunately, it looks like either an RS232 break or some other
> > condition from the serial port can kill the cat program.
> > 
> > Is there a simple way for me to tell the cat program to ignore all such
> > type conditions?  I've played with various stty options without luck.
> > "stty -f /dev/cuaa0" looks like this:
> 
> How about putting it into a indefinite while loop?
> 
> ie:
> 
> 	while true
> 	do
> 		stty -f /dev/cuaa0 raw
> 		nohup cat -u /dev/cuaa0 >> cuaa0.cap
> 	done
> 
> Jonathan Chen
> ----------------------------------------------------------------------
>           When everything's coming your way, you're in the wrong lane.


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?19991206135429.C7542>