[comp.unix.questions] How could I redirect the output of a tty in a file?

bussiere@ganymede.DMI.USherb.CA (Luc Bussieres) (11/20/90)

	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
to something else so we won't loose any characters?


-- 
Luc Bussieres ---- Analyste - Dep. de Mathematiques et Informatique
Universite de Sherbrooke     
Internet : bussiere@dmi.usherb.ca
Tel: (819) 821-7981

cpcahil@virtech.uucp (Conor P. Cahill) (11/20/90)

In article <1990Nov19.162132.18379@DMI.USherb.CA> bussiere@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