ansitape.1m (2012 03)

ANSITAPE(1M) ANSITAPE(1M)
v Normally ansitape does its work silently; the
v (verbose) option displays the name of each file
ansitape treats, preceded by the function letter. It also displays the volume name of each tape
as it is mounted. When used with the
t option, ansitape displays the number of tape blocks
used by each file, the record format, and the carriage control option.
q Query before writing anything. On write (
c or r options), this causes ansitape to ask before
writing to the tape. On extract operations,
ansitape
displays the Unix pathname, and asks if it
should extract the file. Any response starting with a y or Y means yes, any other response
(including an empty line) means no.
f File I/O is done to standard i/o instead. For example, when writing a tape file that is to contain a
lint listing, we could specify
lint xyz.c | ansitape rf xyz.lint
instead of
lint xyz.c > /tmp/xyz.lint
ansitape r /tmp/xyz.lint
rm /tmp/xyz.lint
When reading, this option causes the extracted files to be sent to stdout instead of a disk file.
a The tape should be read or written with the ASCII character set. This is the default.
e The tape should be written with the EBCDIC character set. The mapping is the same one used by
the dd(1) program with conv=ebcdic. This option is automatically enabled if IBM-format labels
are selected.
i Use IBM-format tape labels. The IBM format is very similar, but not identical, to the ANSI stan-
dard. The major difference is that the tape will contain no HDR3 or HDR4 records, thus restricting
the name of the files on the tape to 17 characters. This option automatically selects the EBCDIC
character set for output. To make an IBM-format label on a tape using the ASCII character set
(why?), use the option sequence ia.
3 Do not write HDR3 or HDR4 labels. The HDR3 label is reserved for the use of the operating sys-
tem that created the file. HDR4 is for overflow of filenames that are longer than the 17 characters
allocated in the HDR1 label. Not all systems process these labels correctly, or even ignore them
correctly. This switch suppresses the HDR3 and HDR4 labels when the tape is to be transfered to
a system that would choke on them.
FUNCTION MODIFIERS
Each of these options should be given as a separate argument to
ansitape. Multiple options may be
specified. They must appear as after the key-letter options above, and before any filename arguments.
mt=device Select an alternate drive on which the tape is mounted. The default is /dev/rmt8.
vo=volume-name
Specify the name of the output volume. Normally, this defaults to the first six characters of
your login name. The string ’UNIX’ is used as the default if ansitape cannot determine
your login name.
wo=output_file
Specifiy the file name which stores the volume label information. With this option, user can
get volume label information easily.
rs=recordsize
Specify the output recordsize in bytes. This is the maximum size in the case of variable-
format files. This option also turns on the fixed-record-format option. Thus, if you want to
have variable record sizes with a smaller maximum, you must specify:
rs=recordsize rf=v
When the recordsize is manually given, ansitape does not read disk files to determine the
maximum record length.
rs=r This is a variant of the rs= option. This causes ansitape to read all disk files for record-
size, regardless of their size. Normally, files larger than 100K bytes are not scanned for
recordsize. Using this option also implies variable-length records.
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: March 2012