Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ginosko!usc!apple!rutgers!cmcl2!rna!dan From: dan@rna.UUCP (Dan Ts'o) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Problems getting files from Simtel20 Message-ID: <821@rna.UUCP> Date: 22 Oct 89 19:38:40 GMT References: <389@cs.columbia.edu> Reply-To: dan@rna.UUCP (The Dan of all vices) Distribution: usa Organization: Rockefeller University Neurobiology Lines: 61 In article <389@cs.columbia.edu> benderly@cs.columbia.edu (Dan Benderly) writes: >I am having problems getting files from the SIMTEL archives. I am on a >Unix machine (SunOS, I beleive). After connecting to SIMTEL, I enter >"type tenex", and begin to transfer the files I want. When, however, I down- >load them to my PC & try to un-arc them, it tells me that every file fails >the CRC check, and all I get is garbage. The type tenex should be enough, although maybe image mode is necessary as well. A while ago I transferred a bunch of files using image mode, but forgetting tenex mode. Rather than re-transferring the files, I wrote a little program to fix the tenex files. I posted the program TENEX to comp.binaries.ibm.pc about 1.5 years ago, but would be happy to send it to anyone wanting it. Here is the short description: ----- I had just spent a few hours uploading MSDOS stuff from SIMTEL20. Back on my PC, I realized that while I had remembered to transfer everything in binary mode (in FTP), that I had neglected to account for (is it called ?) TENEX mode (since SIMTEL20 is a 36-bit machine). I decided it would be faster to write a C program to convert the 36-bit data into good ol' 8-bit bytes, than re-upload every. So here is the program. I used MSC 5.0. If anyone needs a binary copy for MSDOS, I'll mail them one. I hope this wheel hasn't been reinvented too many times... Cheers, Dan Ts'o tso@rockefeller.edu dan@rna.rockefeller.edu ...cmcl2!rna!dan 212-570-7671 Dept Neurbiology The Rockefeller University 1230 York Ave. NY, NY 10021 /* * TENEX convert - convert tenex 36-bit files into standard 8-bit * byte stream by discarding every 9th nibble (hopefully its zero). * Also convert TENEX 7-bit ASCII to standard 8-bit byte ASCII by * discarding every 36th bit. * * Written by Daniel Ts'o, dan@rna.rockefeller.edu, 9/7/88 * * Usage: tenex [-[t|b]] [-[v|q]] [files...] * * -t Convert 5x7bit ASCII (35+1bit packing) into 8-bit byte stream * -b Convert 4*8bit binary (32+4bit packing) into 8-bit byte stream * (Default is -b) * -i Ignore nonzero bits (print warning but don't abort conversion) * -v Print progress on stderr * -q Quietly delete nonzero bits * * If file arguments are given, they are converted "in place", using * temporary file "tenex.tmp". * If file arguments are missing, convert stdin to stdout (filter mode). * * Compile with MSC 5.0 on MSDOS: * * cl tenex.c \lib\setargv.obj /link /NOE * * to permit wildcard expansion. */