ISC 2.0.2, How to set baud rate on serial ports?
Walter Mecky
walter at mecky.UUCP
Thu Aug 30 09:21:10 AEST 1990
In article <1990Aug28.145215.29143 at wolves.uucp> 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
< commands. The sleep keeps the port open but inactive. 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.
Why bother with the sleep command, its time value and killing it?
I suggest:
( stty 9600
cat >file ) </dev/tty02
Now the port is open exactly in the time is must be. Not longer,
not shorter.
--
Walter Mecky [ walter at mecky.uucp or ...uunet!unido!mecky!walter ]
More information about the Comp.unix.i386
mailing list