| manpages.info - online man pages | ![]() |
|||
|
rmt (8) Table of Contents
Namermt - remote magtape protocol module
Synopsisrmt
Descriptionrmt is a program used by the remote dump and restore programs in manipulating a magnetic tape drive through an interprocess communication connection. rmt is normally started up with an rexec(3) or rcmd(3) call.
The rmt program accepts requests specific to the manipulation of magnetic tapes, performs the commands, then responds with a status indication. All responses are in ASCII and in one of two forms. Successful commands have responses of:
Anumber\n
Number is an ASCII representation of a decimal number. Unsuccessful commands are responded to with:
Eerror-number\nerror-message\n
Error-number is one of the possible error numbers described in intro(2) and error-message is the corresponding error string as printed from a call to perror(3) . The protocol is comprised of the following commands, which are sent as indicated - no spaces are supplied between the command and its arguments, or between its arguments, and `\n' indicates that a newline should be supplied:
Odevice\nmode\n
Cdevice\n
Loffset\nwhence\n
Wcount\n
Rcount\n
Ioperation\ncount\n
is the count parameter when the operation is successful.
Any other command causes rmt to exit.
DiagnosticsAll responses are of the form described above.
See Alsorcmd(3) , rexec(3) , mtio(4) , rdump(8) , rrestore(8)
BugsPeople should be discouraged from using this for a remote file access protocol.
HistoryThe rmt command appeared in 4.2BSD.
|