{"id":3685,"date":"2022-12-20T17:19:46","date_gmt":"2022-12-20T20:19:46","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/rmt-man8-2\/"},"modified":"2022-12-20T17:19:46","modified_gmt":"2022-12-20T20:19:46","slug":"rmt-man8-2","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/rmt-man8-2\/","title":{"rendered":"RMT (man8)"},"content":{"rendered":"<h1 align=\"center\">RMT<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#COMMANDS\">COMMANDS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#BUG REPORTS\">BUG REPORTS<\/a><br \/> <a href=\"#HISTORY\">HISTORY<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">rmt \u2212 remote magnetic tape server<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>rmt<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Rmt<\/b> provides remote access to files and devices for <b>tar<\/b>(1), <b>cpio<\/b>(1), and similar backup utilities. It is normally called by running <b>rsh<\/b>(1) or <b>ssh<\/b>(1) to the remote machine, optionally using a different login name if one is supplied.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The calling program communicates with <b>rmt<\/b> by sending requests on its standard input and reading replies from the standard output. A request consists of a request letter followed by an argument (if required) and a newline character. Additional data, if any, are sent after the newline. On success, <b>rmt<\/b> returns<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>A<\/b><i>number<\/i><b>n<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">where <i>number<\/i> is an ASCII representation of a decimal return code. Additional data are returned after this line. On error, the following response is returned:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>E<\/b><i>errno<\/i><b>n<\/b><i>error-message<\/i><b>n<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">where <i>errno<\/i> is one of the system error codes, as described in <b>errno<\/b>(3), and <i>error-message<\/i> is a one-line human-readable description of the error, as printed by <b>perror<\/b>(3).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Available commands and possible responses are discussed in detail in the subsequent section.<\/p>\n<h2>COMMANDS <a name=\"COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>O<\/b><i>device<\/i><b>n<\/b><i>flags<\/i><b>n<\/b><\/p>\n<p style=\"margin-left:22%;\">Opens the <i>device<\/i> with given <i>flags<\/i>. If a device had already been opened, it is closed before opening the new one.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>Arguments<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><i>device<\/i><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>The name of the device to open.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><i>flags<\/i><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>Flags for <b>open<\/b>(2): a decimal number, or any valid <b>O_*<\/b> constant from <b>fcntl.h<\/b> (the initial <b>O_<\/b> may be omitted), or a bitwise or (using <b>|<\/b>) of any number of these, e.g.:<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:38%;\">576 <br \/> 64|512 <br \/> CREAT|TRUNC<\/p>\n<p style=\"margin-left:32%;\">In addition, a combined form is also allowed, i.e. a decimal mode followed by its symbolic representation. In this case the symbolic representation is given preference.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>Reply<\/b><\/p>\n<p style=\"margin-left:32%;\"><b>A0n<\/b> on success.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>Extensions<\/b><\/p>\n<p style=\"margin-left:32%;\">BSD version allows only decimal number as <i>flags<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>C<\/b>[<i>device<\/i>]<b>n<\/b><\/p>\n<p style=\"margin-left:22%;\">Close the currently open device. <b><br \/> Arguments<\/b><\/p>\n<p style=\"margin-left:32%;\">Any arguments are silently ignored.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"7%\">\n<p><b>Reply<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"25%\">\n<p><b>A0n<\/b> on success.<\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>L<\/b><i>whence<\/i><b>n<\/b><i>offset<\/i><b>n<\/b><\/p>\n<p style=\"margin-left:22%;\">Performs an <b>lseek<\/b>(2) on the currently open device with the specified parameters. <b><br \/> Arguments<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"10%\">\n<p><i>whence<\/i><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"57%\">\n<p>Where to measure offset from. Valid values are:<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:43%; margin-top: 1em\">0, SET, SEEK_SET seek from the file beginning<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"2%\"><\/td>\n<td width=\"29%\"><\/td>\n<td width=\"69%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"2%\"><\/td>\n<td width=\"29%\"><\/td>\n<td width=\"69%\">\n<p>1, CUR, SEEK_CUR<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"2%\"><\/td>\n<td width=\"29%\"><\/td>\n<td width=\"69%\">\n<p>seek from the current location<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"2%\"><\/td>\n<td width=\"29%\"><\/td>\n<td width=\"69%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"2%\"><\/td>\n<td width=\"29%\"><\/td>\n<td width=\"69%\">\n<p>2, END, SEEK_END<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"2%\"><\/td>\n<td width=\"29%\"><\/td>\n<td width=\"69%\">\n<p>seek from the file end<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"7%\">\n<p style=\"margin-top: 1em\"><b>Reply<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p style=\"margin-top: 1em\"><b>A<\/b><i>offset<\/i><b>n<\/b> on success. The <i>offset<\/i> is the new offset in file.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><b>Extensions<\/b><\/p>\n<p style=\"margin-left:32%;\">BSD version allows only 0,1,2 as <i>whence<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>R<\/b><i>count<\/i><b>n<\/b><\/p>\n<p style=\"margin-left:22%;\">Read <i>count<\/i> bytes of data from the current device. <b><br \/> Arguments<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"18%\">\n<p><i>count<\/i><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"37%\">\n<p>number of bytes to read.<\/p>\n<\/td>\n<td width=\"20%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"18%\">\n<p><b>Reply<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"37%\"><\/td>\n<td width=\"20%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:32%; margin-top: 1em\">On success:<\/p>\n<p style=\"margin-left:38%; margin-top: 1em\"><b>A<\/b><i>rdcount<\/i><b>n<\/b><\/p>\n<p style=\"margin-left:32%; margin-top: 1em\">followed by <i>rdcount<\/i> bytes of data read from the device.<\/p>\n<p style=\"margin-left:11%;\"><b>W<\/b><i>count<\/i><b>n<\/b><\/p>\n<p style=\"margin-left:22%;\">Writes data onto the current device. The command is followed by <i>count<\/i> bytes of input data. <b><br \/> Arguments<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"18%\">\n<p><i>count<\/i><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"39%\">\n<p>Number of bytes to write.<\/p>\n<\/td>\n<td width=\"18%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"18%\">\n<p><b>Reply<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"39%\"><\/td>\n<td width=\"18%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:32%; margin-top: 1em\">On success: <b>A<\/b><i>wrcount<\/i><b>n<\/b>, where <i>wrcount<\/i> is the number of bytes actually written.<\/p>\n<p style=\"margin-left:11%;\"><b>I<\/b><i>opcode<\/i><b>n<\/b><i>count<\/i><b>n<\/b><\/p>\n<p style=\"margin-left:22%;\">Perform a <b>MTIOCOP ioctl<\/b>(2) command with the specified paramedters. <b><br \/> Arguments<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"20%\">\n<p><i>opcode<\/i><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"35%\">\n<p><b>MTIOCOP<\/b> operation code.<\/p>\n<\/td>\n<td width=\"22%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"20%\">\n<p><i>count<\/i><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"35%\">\n<p>mt_count.<\/p>\n<\/td>\n<td width=\"22%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"20%\">\n<p><b>Reply<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"35%\"><\/td>\n<td width=\"22%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:32%; margin-top: 1em\">On success: <b>A0n<\/b>.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"4%\">\n<p style=\"margin-top: 1em\"><b>Sn<\/b><\/p>\n<\/td>\n<td width=\"7%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">Returns the status of the currently open device, as obtained from a <b>MTIOCGET ioctl<\/b>(2) call.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><b>Arguments<\/b><\/p>\n<p style=\"margin-left:32%;\">None<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"7%\">\n<p><b>Reply<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>On success: <b>A<\/b><i>count<\/i><b>n<\/b> followed by <i>count<\/i> bytes of data.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>tar<\/b>(1).<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Using this utility as a general-purpose remote file access tool is discouraged.<\/p>\n<h2>BUG REPORTS <a name=\"BUG REPORTS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Report bugs to <bug\u2212tar@gnu.org>.<\/p>\n<h2>HISTORY <a name=\"HISTORY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>rmt<\/b> command appeared in 4.2BSD. The GNU <b>rmt<\/b> is written from scratch, using the BSD specification.<\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright \u00a9 2013, 2018 Free Software Foundation, Inc. <br \/> License GPLv3+: GNU GPL version 3 or later <http:\/\/gnu.org\/licenses\/gpl.html> <br \/> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  rmt \u2212 remote magnetic tape server <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,797],"class_list":["post-3685","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-rmt-tar"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3685"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3685\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}