From owner-freebsd-questions Mon Dec 6 11:52:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from logisticsoftware.co.nz (logisticsoftware.co.nz [202.37.163.1]) by hub.freebsd.org (Postfix) with ESMTP id AA3B71535C for ; Mon, 6 Dec 1999 11:52:12 -0800 (PST) (envelope-from jonc@logisticsoftware.co.nz) Received: from jonc.logisticsoftware.co.nz (jonc.logisticsoftware.co.nz [10.1.3.1]) by logisticsoftware.co.nz (8.9.3/8.9.3) with ESMTP id IAA24761; Tue, 7 Dec 1999 08:52:10 +1300 (NZDT) Received: (from jonc@localhost) by jonc.logisticsoftware.co.nz (8.9.3/8.9.3) id IAA04241; Tue, 7 Dec 1999 08:52:09 +1300 (NZDT) (envelope-from jonc) Date: Tue, 7 Dec 1999 08:52:09 +1300 From: Jonathan Chen To: Tim Tsai Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to ignore break/signals on serial port Message-ID: <19991207085209.C4124@jonc.logisticsoftware.co.nz> References: <19991205221852.A19286@futuresouth.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <19991205221852.A19286@futuresouth.com>; from tim@futuresouth.com on Sun, Dec 05, 1999 at 10:18:52PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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