From owner-freebsd-questions Sun Dec 5 22:28:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 25E2914D74 for ; Sun, 5 Dec 1999 22:28:17 -0800 (PST) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) with ESMTP id WAA22722; Sun, 5 Dec 1999 22:57:28 -0800 (PST) Date: Sun, 5 Dec 1999 22:57:28 -0800 (PST) From: Alfred Perlstein To: Tim Tsai Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to ignore break/signals on serial port In-Reply-To: <19991205221852.A19286@futuresouth.com> 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, 5 Dec 1999, 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: > > speed 9600 baud; > lflags: -icanon -isig -iexten -echo > iflags: -icrnl -ixon -ixany -imaxbel -brkint > oflags: -opost -onlcr -oxtabs > cflags: cs8 -parenb try passing the arguments 'ignbrk' and '-brkint' with that stty command. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message