isposix

Un outil pour savoir si une commande est posix - retour accueil

git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |

uucp.html (15429B)


      1 <!-- Copyright 2001-2024 IEEE and The Open Group, All Rights Reserved -->
      2 <!DOCTYPE HTML>
      3 <html lang="en">
      4 <head>
      5 <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.8.0">
      6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      7 <link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group rhtm tool v1.2.4 -->
      8 <!-- Copyright (c) 2001-2024 The Open Group, All Rights Reserved -->
      9 <title>uucp</title>
     10 </head>
     11 <body bgcolor="white">
     12 <div class="NAVHEADER">
     13 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0">
     14 <tr class="nav">
     15 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/unlink.html" accesskey="P">&lt;&lt;&lt;
     16 Previous</a></td>
     17 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td>
     18 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/uudecode.html" accesskey="N">Next
     19 &gt;&gt;&gt;</a></td>
     20 </tr>
     21 </table>
     22 <hr align="left" width="100%"></div>
     23 <script language="JavaScript" src="../jscript/codes.js"></script><basefont size="3">
     24 <center><font size="2">The Open Group Base Specifications Issue 8<br>
     25 IEEE Std 1003.1-2024<br>
     26 Copyright © 2001-2024 The IEEE and The Open Group</font></center>
     27 <hr size="2" noshade>
     28 <a name="top" id="top"></a> <a name="uucp" id="uucp"></a> <a name="tag_20_140" id="tag_20_140"></a><!-- uucp -->
     29 <h4 class="mansect"><a name="tag_20_140_01" id="tag_20_140_01"></a>NAME</h4>
     30 <blockquote>uucp — system-to-system copy</blockquote>
     31 <h4 class="mansect"><a name="tag_20_140_02" id="tag_20_140_02"></a>SYNOPSIS</h4>
     32 <blockquote class="synopsis">
     33 <div class="box"><code><tt><sup>[<a href="javascript:open_code('UU')">UU</a>]</sup> <img src="../images/opt-start.gif" alt=
     34 "[Option Start]" border="0"> uucp</tt> <b>[</b><tt>-cCdfjmr</tt><b>] [</b><tt>-n</tt> <i>user</i><b>]</b>
     35 <i>source-file</i><tt>...</tt> <i>destination-file</i> <tt><img src="../images/opt-end.gif" alt="[Option End]" border=
     36 "0"></tt></code></div>
     37 </blockquote>
     38 <h4 class="mansect"><a name="tag_20_140_03" id="tag_20_140_03"></a>DESCRIPTION</h4>
     39 <blockquote>
     40 <p>The <i>uucp</i> utility shall copy files named by the <i>source-file</i> argument to the <i>destination-file</i> argument. The
     41 files named can be on local or remote systems.</p>
     42 <p>The <i>uucp</i> utility cannot guarantee support for all character encodings in all circumstances. For example, transmission
     43 data may be restricted to 7 bits by the underlying network, 8-bit data and filenames need not be portable to non-internationalized
     44 systems, and so on. Under these circumstances, it is recommended that only characters defined in the ISO/IEC&nbsp;646:1991 standard
     45 International Reference Version (equivalent to ASCII) 7-bit range of characters be used, and that only characters defined in the
     46 portable filename character set be used for naming files. The protocol for transfer of files is unspecified by POSIX.1-2024.</p>
     47 <p>Typical implementations of this utility require a communications line configured to use XBD <a href=
     48 "../basedefs/V1_chap11.html#tag_11"><i>11. General Terminal Interface</i></a> , but other communications means may be used. On
     49 systems where there are no available communications means (either temporarily or permanently), this utility shall write an error
     50 message describing the problem and exit with a non-zero exit status.</p>
     51 </blockquote>
     52 <h4 class="mansect"><a name="tag_20_140_04" id="tag_20_140_04"></a>OPTIONS</h4>
     53 <blockquote>
     54 <p>The <i>uucp</i> utility shall conform to XBD <a href="../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax
     55 Guidelines</i></a> .</p>
     56 <p>The following options shall be supported:</p>
     57 <dl compact>
     58 <dd></dd>
     59 <dt><b>-c</b></dt>
     60 <dd>Do not copy local file to the spool directory for transfer to the remote machine (default).</dd>
     61 <dt><b>-C</b></dt>
     62 <dd>Force the copy of local files to the spool directory for transfer.</dd>
     63 <dt><b>-d</b></dt>
     64 <dd>Make all necessary directories for the file copy (default).</dd>
     65 <dt><b>-f</b></dt>
     66 <dd>Do not make intermediate directories for the file copy.</dd>
     67 <dt><b>-j</b></dt>
     68 <dd>Write the job identification string to standard output. This job identification can be used by <a href=
     69 "../utilities/uustat.html"><i>uustat</i></a> to obtain the status or terminate a job.</dd>
     70 <dt><b>-m</b></dt>
     71 <dd>Send mail to the requester when the copy is completed.</dd>
     72 <dt><b>-n&nbsp;</b><i>user</i></dt>
     73 <dd>Notify <i>user</i> on the remote system that a file was sent.</dd>
     74 <dt><b>-r</b></dt>
     75 <dd>Do not start the file transfer; just queue the job.</dd>
     76 </dl>
     77 </blockquote>
     78 <h4 class="mansect"><a name="tag_20_140_05" id="tag_20_140_05"></a>OPERANDS</h4>
     79 <blockquote>
     80 <p>The following operands shall be supported:</p>
     81 <dl compact>
     82 <dd></dd>
     83 <dt><i>destination-file</i>,&nbsp;<i>source-file</i></dt>
     84 <dd><br>
     85 A pathname of a file to be copied to, or from, respectively. Either name can be a pathname on the local machine, or can have the
     86 form:
     87 <pre>
     88 <i>system-name</i><tt>!</tt><i>pathname</i><tt>
     89 </tt></pre>
     90 <p>where <i>system-name</i> is taken from a list of system names that <i>uucp</i> knows about. The destination <i>system-name</i>
     91 can also be a list of names such as:</p>
     92 <pre>
     93 <i>system-name</i><tt>!</tt><i>system-name</i><tt>!...!</tt><i>system-name</i><tt>!</tt><i>pathname</i><tt>
     94 </tt></pre>
     95 <p>in which case, an attempt is made to send the file via the specified route to the destination. Care should be taken to ensure
     96 that intermediate nodes in the route are willing to forward information.</p>
     97 <p>The shell pattern matching notation characters <tt>'?'</tt>, <tt>'*'</tt>, and <tt>"[...]"</tt> appearing in <i>pathname</i>
     98 shall be expanded on the appropriate system.</p>
     99 <p>Pathnames can be one of:</p>
    100 <ol>
    101 <li>
    102 <p>An absolute pathname.</p>
    103 </li>
    104 <li>
    105 <p>A pathname preceded by ~<i>user</i> where <i>user</i> is a login name on the specified system and is replaced by that user's
    106 login directory. Note that if an invalid login is specified, the default is to the public directory (called <i>PUBDIR</i>; the
    107 actual location of <i>PUBDIR</i> is implementation-defined).</p>
    108 </li>
    109 <li>
    110 <p>A pathname preceded by ~/<i>destination</i> where <i>destination</i> is appended to <i>PUBDIR</i>. <basefont size="2"></p>
    111 <dl>
    112 <dt><b>Note:</b></dt>
    113 <dd>This destination is treated as a filename unless more than one file is being transferred by this request or the destination is
    114 already a directory. To ensure that it is a directory, follow the destination with a <tt>'/'</tt>. For example, <b>~/dan/</b> as
    115 the destination makes the directory <b>PUBDIR/dan</b> if it does not exist and puts the requested files in that directory.</dd>
    116 </dl>
    117 <basefont size="3"></li>
    118 <li>
    119 <p>Anything else shall be prefixed by the current directory.</p>
    120 </li>
    121 </ol>
    122 <p>If the result is an erroneous pathname for the remote system, the copy shall fail. If the <i>destination-file</i> is a
    123 directory, the last part of the <i>source-file</i> name shall be used.</p>
    124 <p>The read, write, and execute permissions given by <i>uucp</i> are implementation-defined.</p>
    125 </dd>
    126 </dl>
    127 </blockquote>
    128 <h4 class="mansect"><a name="tag_20_140_06" id="tag_20_140_06"></a>STDIN</h4>
    129 <blockquote>
    130 <p>Not used.</p>
    131 </blockquote>
    132 <h4 class="mansect"><a name="tag_20_140_07" id="tag_20_140_07"></a>INPUT FILES</h4>
    133 <blockquote>
    134 <p>The files to be copied are regular files.</p>
    135 </blockquote>
    136 <h4 class="mansect"><a name="tag_20_140_08" id="tag_20_140_08"></a>ENVIRONMENT VARIABLES</h4>
    137 <blockquote>
    138 <p>The following environment variables shall affect the execution of <i>uucp</i>:</p>
    139 <dl compact>
    140 <dd></dd>
    141 <dt><i>LANG</i></dt>
    142 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href=
    143 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization
    144 variables used to determine the values of locale categories.)</dd>
    145 <dt><i>LC_ALL</i></dt>
    146 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd>
    147 <dt><i>LC_COLLATE</i></dt>
    148 <dd><br>
    149 Determine the locale for the behavior of ranges, equivalence classes, and multi-character collating elements within bracketed
    150 filename patterns.</dd>
    151 <dt><i>LC_CTYPE</i></dt>
    152 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as
    153 opposed to multi-byte characters in arguments and input files) and the behavior of character classes within bracketed filename
    154 patterns (for example, <tt>"'[[:lower:]]*'"</tt>).</dd>
    155 <dt><i>LC_MESSAGES</i></dt>
    156 <dd><br>
    157 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error, and
    158 informative messages written to standard output.</dd>
    159 <dt><i>NLSPATH</i></dt>
    160 <dd><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">
    161 Determine the location of messages objects and message catalogs. <img src="../images/opt-end.gif" alt="[Option End]" border=
    162 "0"></dd>
    163 </dl>
    164 </blockquote>
    165 <h4 class="mansect"><a name="tag_20_140_09" id="tag_20_140_09"></a>ASYNCHRONOUS EVENTS</h4>
    166 <blockquote>
    167 <p>Default.</p>
    168 </blockquote>
    169 <h4 class="mansect"><a name="tag_20_140_10" id="tag_20_140_10"></a>STDOUT</h4>
    170 <blockquote>
    171 <p>Not used.</p>
    172 </blockquote>
    173 <h4 class="mansect"><a name="tag_20_140_11" id="tag_20_140_11"></a>STDERR</h4>
    174 <blockquote>
    175 <p>The standard error shall be used only for diagnostic messages.</p>
    176 </blockquote>
    177 <h4 class="mansect"><a name="tag_20_140_12" id="tag_20_140_12"></a>OUTPUT FILES</h4>
    178 <blockquote>
    179 <p>The output files (which may be on other systems) are copies of the input files.</p>
    180 <p>If <b>-m</b> is used, mail files are modified.</p>
    181 </blockquote>
    182 <h4 class="mansect"><a name="tag_20_140_13" id="tag_20_140_13"></a>EXTENDED DESCRIPTION</h4>
    183 <blockquote>
    184 <p>None.</p>
    185 </blockquote>
    186 <h4 class="mansect"><a name="tag_20_140_14" id="tag_20_140_14"></a>EXIT STATUS</h4>
    187 <blockquote>
    188 <p>The following exit values shall be returned:</p>
    189 <dl compact>
    190 <dd></dd>
    191 <dt>&nbsp;0</dt>
    192 <dd>Successful completion.</dd>
    193 <dt>&gt;0</dt>
    194 <dd>An error occurred.</dd>
    195 </dl>
    196 </blockquote>
    197 <h4 class="mansect"><a name="tag_20_140_15" id="tag_20_140_15"></a>CONSEQUENCES OF ERRORS</h4>
    198 <blockquote>
    199 <p>Default.</p>
    200 </blockquote>
    201 <hr>
    202 <div class="box"><em>The following sections are informative.</em></div>
    203 <h4 class="mansect"><a name="tag_20_140_16" id="tag_20_140_16"></a>APPLICATION USAGE</h4>
    204 <blockquote>
    205 <p>This utility is part of the UUCP Utilities option and need not be supported by all implementations.</p>
    206 <p>The domain of remotely accessible files can (and for obvious security reasons usually should) be severely restricted.</p>
    207 <p>Note that the <tt>'!'</tt> character in addresses has to be escaped when using <i>csh</i> as a command interpreter because of
    208 its history substitution syntax. For <i>ksh</i> and <a href="../utilities/sh.html"><i>sh</i></a> the escape is not necessary, but
    209 may be used.</p>
    210 <p>As noted above, shell metacharacters appearing in pathnames are expanded on the appropriate system. On an internationalized
    211 system, this is done under the control of local settings of <i>LC_COLLATE</i> and <i>LC_CTYPE .</i> Thus, care should be taken when
    212 using bracketed filename patterns, as collation and typing rules may vary from one system to another. Also be aware that certain
    213 types of expression (that is, equivalence classes, character classes, and collating symbols) need not be supported on
    214 non-internationalized systems.</p>
    215 </blockquote>
    216 <h4 class="mansect"><a name="tag_20_140_17" id="tag_20_140_17"></a>EXAMPLES</h4>
    217 <blockquote>
    218 <p>None.</p>
    219 </blockquote>
    220 <h4 class="mansect"><a name="tag_20_140_18" id="tag_20_140_18"></a>RATIONALE</h4>
    221 <blockquote>
    222 <p>None.</p>
    223 </blockquote>
    224 <h4 class="mansect"><a name="tag_20_140_19" id="tag_20_140_19"></a>FUTURE DIRECTIONS</h4>
    225 <blockquote>
    226 <p>If this utility is directed to create a new directory entry that contains any bytes that have the encoded value of a
    227 &lt;newline&gt; character, implementations are encouraged to treat this as an error. A future version of this standard may require
    228 implementations to treat this as an error.</p>
    229 </blockquote>
    230 <h4 class="mansect"><a name="tag_20_140_20" id="tag_20_140_20"></a>SEE ALSO</h4>
    231 <blockquote>
    232 <p><a href="../utilities/mailx.html#"><i>mailx</i></a> , <a href="../utilities/uuencode.html#"><i>uuencode</i></a> , <a href=
    233 "../utilities/uustat.html#"><i>uustat</i></a> , <a href="../utilities/uux.html#"><i>uux</i></a></p>
    234 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a> , <a href=
    235 "../basedefs/V1_chap11.html#tag_11"><i>11. General Terminal Interface</i></a> , <a href=
    236 "../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax Guidelines</i></a></p>
    237 </blockquote>
    238 <h4 class="mansect"><a name="tag_20_140_21" id="tag_20_140_21"></a>CHANGE HISTORY</h4>
    239 <blockquote>
    240 <p>First released in Issue 2.</p>
    241 </blockquote>
    242 <h4 class="mansect"><a name="tag_20_140_22" id="tag_20_140_22"></a>Issue 6</h4>
    243 <blockquote>
    244 <p>The <i>LC_TIME</i> and <i>TZ</i> entries are removed from the ENVIRONMENT VARIABLES section.</p>
    245 <p>The UN margin codes and associated shading are removed from the <b>-C</b>, <b>-f</b>, <b>-j</b>, <b>-n</b>, and <b>-r</b>
    246 options in response to The Open Group Base Resolution bwg2001-003.</p>
    247 </blockquote>
    248 <h4 class="mansect"><a name="tag_20_140_23" id="tag_20_140_23"></a>Issue 7</h4>
    249 <blockquote>
    250 <p>SD5-XCU-ERN-46 is applied, moving this utility to the UUCP Utilities Option Group.</p>
    251 <p>SD5-XCU-ERN-97 is applied, updating the SYNOPSIS.</p>
    252 </blockquote>
    253 <h4 class="mansect"><a name="tag_20_140_24" id="tag_20_140_24"></a>Issue 8</h4>
    254 <blockquote>
    255 <p>Austin Group Defect 251 is applied, encouraging implementations to disallow the creation of filenames containing any bytes that
    256 have the encoded value of a &lt;newline&gt; character.</p>
    257 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p>
    258 <p>Austin Group Defect 1516 is applied, adding XSI shading to text relating to <i>NLSPATH .</i></p>
    259 </blockquote>
    260 <div class="box"><em>End of informative text.</em></div>
    261 <hr>
    262 <p>&nbsp;</p>
    263 <a href="#top"><span class="topOfPage">return to top of page</span></a><br>
    264 <hr size="2" noshade>
    265 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br>
    266 POSIX™ is a Trademark of The IEEE.<br>
    267 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br>
    268 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href=
    269 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a>
    270 ]</font></center>
    271 <hr size="2" noshade>
    272 <div class="NAVHEADER">
    273 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0">
    274 <tr class="nav">
    275 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/unlink.html" accesskey="P">&lt;&lt;&lt;
    276 Previous</a></td>
    277 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td>
    278 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/uudecode.html" accesskey="N">Next
    279 &gt;&gt;&gt;</a></td>
    280 </tr>
    281 </table>
    282 <hr align="left" width="100%"></div>
    283 </body>
    284 </html>