Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!accuvax.nwu.edu!hopf!john From: john@hopf. (John Franks) Newsgroups: comp.unix.wizards Subject: Re: Talking to a modem Message-ID: <2603@accuvax.nwu.edu> Date: 5 Jan 90 15:49:05 GMT References: <1990Jan4.233902.29658@aqdata.uucp> Sender: news@accuvax.nwu.edu Reply-To: john@hopf (John Franks) Organization: Northwestern Univ. Evanston, Il. Lines: 14 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@math.nwu.edu