How could I redirect the output of a tty in a file?

Conor P. Cahill cpcahil at virtech.uucp
Tue Nov 20 13:38:06 AEST 1990


In article <1990Nov19.162132.18379 at DMI.USherb.CA> bussiere at ganymede.DMI.USherb.CA (Luc Bussieres) writes:
>
>	I'm trying to redirect the output of a tty line to a file
>using the command "cat /dev/ttyb > pacx.log". This is the logging
>messages that come out our Pacx. The problem is that we are loosing 
>characters. Is there a modification I could make to the ttytab or

If you Pacx supports flow control, you should try to set flow control
on the port that you are reading.   For a BSD system it could be
done as follows:

	(stty tandem; cat) < /dev/ttyb > packx.log

or for SYSV

	(stty ixoff; cat) < /dev/ttyb > packx.log

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list