ISC 2.0.2, How to set baud rate on serial ports?

Pim Zandbergen pim at cti-software.nl
Wed Aug 29 23:12:34 AEST 1990


ggw at wolves.uucp (Gregory G. Woodbury) writes:


>The answer is to have a command like:
>	sleep 10000 >/dev/tty02 &
>preceed your 
>	stty 9600 </dev/tty02 >/dev/tty02
>	cat /dev/tty02 >file

Much simpler is:
{
  stty 9600 0<&1
  cat
} < /dev/tty02 > file

>For technical
>completeness you should probably get the pid of the sleep command from
>the variable "$!" and kill the sleep process after your transfer is done.

This will then not be necessary anymore.
-- 
Pim Zandbergen                          domain : pim at cti-software.nl
CTI Software BV                         uucp   : uunet!mcsun!hp4nl!ctisbv!pim
Laan Copes van Cattenburch 70           phone  : +31 70 3542302
2585 GD The Hague, The Netherlands      fax    : +31 70 3512837



More information about the Comp.unix.i386 mailing list