Xref: utzoo comp.unix.wizards:10597 comp.misc:3159 Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!cwjcc!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon S. Allbery) Newsgroups: comp.unix.wizards,comp.misc Subject: Re: Televideo (CP/M) to Unix Copy Message-ID: <12260@ncoast.UUCP> Date: 20 Aug 88 00:07:29 GMT References: <119@gillxp> Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery) Followup-To: comp.unix.wizards Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 33 As quoted from <119@gillxp> by rg@gillxp (Richard J. Gill): +--------------- | I am looking for suggestions regarding copying data from a Televideo | 816/40 (CP/M - I think "concurrent") to an NCR Tower (System V). +--------------- If it's Concurrent CP/M (or possibly CP/M-86), you should be able to set the serial port with SETUP.CMD and then copy a file with the command PIP LPT2:=filename.ext (The device name may be wrong, I haven't used it in awhile and my manuals aren't readily available.) On the System V side, you can catch data from the port most easily with "cu -l/dev/ttyXX dir | tee file", but you will probably have to edit the file afterward. A method which avoids editing is somewhat more complex: $ sleep 30000 < /dev/ttyXX & $ stty icanon -echo eof '^z' ... < /dev/ttyXX $ for file in {put list of filenames here}; do > cat -u - < /dev/ttyXX | tr -d '\015' > $file > done This makes sure the port retains its settings, since after the last close it returns to the probably-useless default. The setting of "eof" allows the Unix system to detect CP/M end of file automatically, assuming the last line of the data file is terminated with the usual CRLF. (If it's not, you will have to separate the files manually anyway.) ++Brandon -- Brandon S. Allbery, uunet!marque!ncoast!allbery DELPHI: ALLBERY For comp.sources.misc send mail to ncoast!sources-misc