Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!unido!mikros!mwtech!mecky!walter From: walter@mecky.UUCP (Walter Mecky) Newsgroups: comp.unix.i386 Subject: Re: ISC 2.0.2, How to set baud rate on serial ports? Message-ID: <757@mecky.UUCP> Date: 29 Aug 90 23:21:10 GMT References: <9008280005.aa24338@PARIS.ICS.UCI.EDU> <1990Aug28.145215.29143@wolves.uucp> Reply-To: walter@mecky.UUCP (Walter Mecky) Organization: MIKROS Systemware, Buettelborn/W-Germany Lines: 21 In article <1990Aug28.145215.29143@wolves.uucp> ggw@wolves.uucp (Gregory G. Woodbury) writes: < The answer is to have a command like: < sleep 10000 >/dev/tty02 & < preceed your < stty 9600 /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 )