Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 1999 22:18:52 -0600
From:      Tim Tsai <tim@futuresouth.com>
To:        freebsd-questions@freebsd.org
Subject:   how to ignore break/signals on serial port
Message-ID:  <19991205221852.A19286@futuresouth.com>

next in thread | raw e-mail | index | archive | help
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

Thanks,

Tim


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?19991205221852.A19286>