Program: ST.EXE Description: ST is a SCSI tape utility program for DOS. It is intended for use with 9-track tapes or anything that acts like one -- 4mm DAT, 8mm (sort of), DLT, or DEC TZ30 or TK50Z-GA drives. It requires a DOS ASPI driver for talking to the SCSI port (e.g. ASPI8XX.SYS for Symbios 53C8xx based controllers, or ASPI8DOS.SYS for Adaptec AIC-78xx based ones such as the AHA2940xx). The commands are mostly a subset of the commands of the UNIX "mt" program. You can get a list by just typing "ST". Each command generally translates directly to one SCSI command, so this program is intended for simple dinking around (actually I wrote it just as a demo), nothing fancy. The only complicated commands are IGET and IPUT, which get a tape into an image file, or put an image file onto a tape. These are intended for transferring between Ersatz-11's image file format and actual tapes. Commands: The command line is as follows: st [-f device] operation The operation is a single tape operation from the list below. The optional device name identifies the SCSI tape drive to be accessed (see "Devices" below). BSF [n] backspace file(s) BSR [n] backspace record(s) FSF [n] forward space file(s) FSR [n] forward space record(s) IGET file [n] get tape into image file (n=reclen, 0 or none if variable) IPUT file [n] put image file onto tape (n=reclen as above) READ read (and toss) a record REWIND rewind tape UNLOAD unload (rewind/unthread/eject/etc.) tape WBUF [n] enable(1)/disable(0) write buffering (must be enabled for TZ30, firmware bugs will cause write errors otherwise) WEOF [n] write EOF mark(s) WRITE write 512-byte record of ASCII As Image files: The image file format used for IGET and IPUT (with no record length specified, i.e. variable length) is as follows: Normal tape record: .long len ;record length, LSB first ;N.B. *not* padded to longword boundary .blkb len ;actual record data .long len ;length again, for backspacing Tape mark: .long 0 ;looks the same backwards ;so no need to repeat it Devices: The tape unit to use is specified either with the "-f " command line flag, or using the TAPE environment variable. In either case the device name format is as follows: SCSIht_l: With the following defnitions of h, t, and l: h host adapter letter, A=first (default), B=second, ... t SCSI target ID (0-15), default=0 l SCSI LUN (0-7), default=0 (leave out the _ if using the default) So for example, "SCSIB6_2:" would refer to target 6, LUN 2, on the second SCSI adapter. But in practice the default values are almost always appropriate for h and l, so they may be omitted. For example, "SCSI2:" refers to SCSI target 2, LUN 0 on the first (or only) SCSI adapter. The "-f" switch overrides the TAPE environment variable. If neither is specified, "SCSI0:" is used by default. Note: D Bit, E11, and Ersatz-11 and trademarks of Digby's Bitpile, Inc. All other trademarks are used for identification purposes only and are the property of their respective owners. Release: V1.1, 15-Jun-2001 Author: John Wilson ST is copyrighted, but may be freely distributed as long as the source code is included with the disclaimer and copyright notice intact.