Talking to a modem

John Franks john at hopf.
Sat Jan 6 02:49:05 AEST 1990


Here's a shell script which does what you want.  You will have
to modify BAUD and DEV.  It ignores parity issues which you
may have to deal with.

#!/bin/sh
BAUD="1200"
DEV="/dev/cua0"
cat -u <$DEV &
trap "kill $!; stty echo -cbreak; exit 1" 2
stty -echo $BAUD raw hup  >$DEV
stty -echo cbreak
cat -u | tr '\012' '\015' >$DEV
John Franks 	Dept of Math. Northwestern University
		john at math.nwu.edu



More information about the Comp.unix.wizards mailing list