Xref: utzoo comp.unix.sysv386:1351 comp.unix.xenix.sco:540 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!ctisbv!pim From: pim@cti-software.nl (Pim Zandbergen) Newsgroups: comp.unix.sysv386,comp.unix.xenix.sco Subject: Re: reading tapes on 386/ix written to SCO's /dev/erct0 Message-ID: <1990Oct18.194508.10825@cti-software.nl> Date: 18 Oct 90 19:45:08 GMT References: <1990Oct17.201051.28614@cti-software.nl> Organization: CTI Software BV, The Hague, The Netherlands Lines: 52 I wrote: >I have these two tapes I want to read on our 386/ix 2.0.2 system. >But apperently they were written on SCO UNIX using /dev/erct0, >the error correcting device. With a bit of experimenting, I solved the problem myself. This is the program I used. Usage: dd if=/dev/tape bs=256k | skipecc | cpio -i .... #--------------------------------CUT HERE------------------------------------- #! /bin/sh # # This is a shell archive. Save this into a file, edit it # and delete all lines above this comment. Then give this # file to sh by executing the command "sh file". The files # will be extracted into the current directory owned by # you with default permissions. # # The files contained herein are: # # -rw-rw-r-- 1 pim other 196 Oct 18 20:33 skipecc.c # echo 'x - skipecc.c' if test -f skipecc.c; then echo 'shar: not overwriting skipecc.c'; else sed 's/^X//' << '________This_Is_The_END________' > skipecc.c X#define READBYTES 32768 X#define WRITEBYTES 31744 X X#include X Xmain() X{ X char buffer[READBYTES]; X X while (fread(buffer, 1, READBYTES, stdin) > 0) X fwrite(buffer, 1, WRITEBYTES, stdout); X} ________This_Is_The_END________ if test `wc -c < skipecc.c` -ne 196; then echo 'shar: skipecc.c was damaged during transit (should have been 196 bytes)' fi fi ; : end of overwriting check exit 0 -- Pim Zandbergen domain : pim@cti-software.nl CTI Software BV uucp : uunet!mcsun!hp4nl!ctisbv!pim Laan Copes van Cattenburch 70 phone : +31 70 3542302 2585 GD The Hague, The Netherlands fax : +31 70 3512837