Un outil pour savoir si une commande est posix - retour accueil
git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |
uux.html (16216B)
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>uux</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/uustat.html" accesskey="P"><<< 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/val.html" accesskey="N">Next >>></a></td> 19 </tr> 20 </table> 21 <hr align="left" width="100%"></div> 22 <script language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> 23 <center><font size="2">The Open Group Base Specifications Issue 8<br> 24 IEEE Std 1003.1-2024<br> 25 Copyright © 2001-2024 The IEEE and The Open Group</font></center> 26 <hr size="2" noshade> 27 <a name="top" id="top"></a> <a name="uux" id="uux"></a> <a name="tag_20_144" id="tag_20_144"></a><!-- uux --> 28 <h4 class="mansect"><a name="tag_20_144_01" id="tag_20_144_01"></a>NAME</h4> 29 <blockquote>uux — remote command execution</blockquote> 30 <h4 class="mansect"><a name="tag_20_144_02" id="tag_20_144_02"></a>SYNOPSIS</h4> 31 <blockquote class="synopsis"> 32 <div class="box"><code><tt><sup>[<a href="javascript:open_code('UU')">UU</a>]</sup> <img src="../images/opt-start.gif" alt= 33 "[Option Start]" border="0"> uux</tt> <b>[</b><tt>-jnp</tt><b>]</b> <i>command-string</i> <tt><img src="../images/opt-end.gif" alt= 34 "[Option End]" border="0"></tt></code></div> 35 </blockquote> 36 <h4 class="mansect"><a name="tag_20_144_03" id="tag_20_144_03"></a>DESCRIPTION</h4> 37 <blockquote> 38 <p>The <i>uux</i> utility shall gather zero or more files from various systems, execute a shell pipeline (see <a href= 39 "../utilities/V3_chap02.html#tag_19_09"><i>2.9 Shell Commands</i></a> ) on a specified system, and then send the standard output of 40 the command to a file on a specified system. Only the first command of a pipeline can have a <i>system-name</i>! prefix. All other 41 commands in the pipeline shall be executed on the system of the first command.</p> 42 <p>The following restrictions are applicable to the shell pipeline processed by <i>uux</i>:</p> 43 <ul> 44 <li> 45 <p>In gathering files from different systems, pathname expansion shall not be performed by <i>uux</i>. Thus, a request such as:</p> 46 <pre> 47 <tt>uux "c17 remsys!~/*.c" 48 </tt></pre> 49 <p>would attempt to copy the file named literally <b>*.c</b> to the local system.</p> 50 </li> 51 <li> 52 <p>The redirection operators <tt>">>"</tt>, <tt>"<<"</tt>, <tt>">|"</tt>, and <tt>">&"</tt> shall not be 53 accepted. Any use of these redirection operators shall cause this utility to write an error message describing the problem and exit 54 with a non-zero exit status.</p> 55 </li> 56 <li> 57 <p>The reserved word <b>!</b> cannot be used at the head of the pipeline to modify the exit status. (See the <i>command-string</i> 58 operand description below.)</p> 59 </li> 60 <li> 61 <p>Alias substitution shall not be performed.</p> 62 </li> 63 </ul> 64 <p>A filename can be specified as for <a href="../utilities/uucp.html"><i>uucp</i></a>; it can be an absolute pathname, a pathname 65 preceded by ~<i>name</i> (which is replaced by the corresponding login directory), a pathname specified as ~/<i>dest</i> 66 (<i>dest</i> is prefixed by the public directory called <i>PUBDIR</i>; the actual location of <i>PUBDIR</i> is 67 implementation-defined), or a simple filename (which is prefixed by <i>uux</i> with the current directory). See <a href= 68 "../utilities/uucp.html#"><i>uucp</i></a> for the details.</p> 69 <p>The execution of commands on remote systems shall take place in an execution directory known to the <a href= 70 "../utilities/uucp.html"><i>uucp</i></a> system. All files required for the execution shall be put into this directory unless they 71 already reside on that machine. Therefore, the application shall ensure that non-local filenames (without path or machine 72 reference) are unique within the <i>uux</i> request.</p> 73 <p>The <i>uux</i> utility shall attempt to get all files to the execution system. For files that are output files, the application 74 shall ensure that the filename is escaped using parentheses.</p> 75 <p>The remote system shall notify the user by mail if the requested command on the remote system was disallowed or the files were 76 not accessible. This notification can be turned off by the <b>-n</b> option.</p> 77 <p>Typical implementations of this utility require a communications line configured to use XBD <a href= 78 "../basedefs/V1_chap11.html#tag_11"><i>11. General Terminal Interface</i></a> , but other communications means may be used. On 79 systems where there are no available communications means (either temporarily or permanently), this utility shall write an error 80 message describing the problem and exit with a non-zero exit status.</p> 81 <p>The <i>uux</i> utility cannot guarantee support for all character encodings in all circumstances. For example, transmission data 82 may be restricted to 7 bits by the underlying network, 8-bit data and filenames need not be portable to non-internationalized 83 systems, and so on. Under these circumstances, it is recommended that only characters defined in the ISO/IEC 646:1991 standard 84 International Reference Version (equivalent to ASCII) 7-bit range of characters be used and that only characters defined in the 85 portable filename character set be used for naming files.</p> 86 </blockquote> 87 <h4 class="mansect"><a name="tag_20_144_04" id="tag_20_144_04"></a>OPTIONS</h4> 88 <blockquote> 89 <p>The <i>uux</i> utility shall conform to XBD <a href="../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax 90 Guidelines</i></a> .</p> 91 <p>The following options shall be supported:</p> 92 <dl compact> 93 <dd></dd> 94 <dt><b>-j</b></dt> 95 <dd>Write the job identification string to standard output. This job identification can be used by <a href= 96 "../utilities/uustat.html"><i>uustat</i></a> to obtain the status or terminate a job.</dd> 97 <dt><b>-n</b></dt> 98 <dd>Do not notify the user if the command fails.</dd> 99 <dt><b>-p</b></dt> 100 <dd>Make the standard input to <i>uux</i> the standard input to the <i>command-string</i>.</dd> 101 </dl> 102 </blockquote> 103 <h4 class="mansect"><a name="tag_20_144_05" id="tag_20_144_05"></a>OPERANDS</h4> 104 <blockquote> 105 <p>The following operand shall be supported:</p> 106 <dl compact> 107 <dd></dd> 108 <dt><i>command-string</i></dt> 109 <dd><br> 110 A string made up of one or more arguments that are similar to normal command arguments, except that the command and any filenames 111 can be prefixed by <i>system-name</i>!. A null <i>system-name</i> shall be interpreted as the local system.</dd> 112 </dl> 113 </blockquote> 114 <h4 class="mansect"><a name="tag_20_144_06" id="tag_20_144_06"></a>STDIN</h4> 115 <blockquote> 116 <p>The standard input shall not be used unless the <tt>'-'</tt> or <b>-p</b> option is specified; in those cases, the standard 117 input shall be made the standard input of the <i>command-string</i>.</p> 118 </blockquote> 119 <h4 class="mansect"><a name="tag_20_144_07" id="tag_20_144_07"></a>INPUT FILES</h4> 120 <blockquote> 121 <p>Input files shall be selected according to the contents of <i>command-string</i>.</p> 122 </blockquote> 123 <h4 class="mansect"><a name="tag_20_144_08" id="tag_20_144_08"></a>ENVIRONMENT VARIABLES</h4> 124 <blockquote> 125 <p>The following environment variables shall affect the execution of <i>uux</i>:</p> 126 <dl compact> 127 <dd></dd> 128 <dt><i>LANG</i></dt> 129 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href= 130 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization 131 variables used to determine the values of locale categories.)</dd> 132 <dt><i>LC_ALL</i></dt> 133 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd> 134 <dt><i>LC_CTYPE</i></dt> 135 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as 136 opposed to multi-byte characters in arguments).</dd> 137 <dt><i>LC_MESSAGES</i></dt> 138 <dd><br> 139 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.</dd> 140 <dt><i>NLSPATH</i></dt> 141 <dd><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> 142 Determine the location of messages objects and message catalogs. <img src="../images/opt-end.gif" alt="[Option End]" border= 143 "0"></dd> 144 </dl> 145 </blockquote> 146 <h4 class="mansect"><a name="tag_20_144_09" id="tag_20_144_09"></a>ASYNCHRONOUS EVENTS</h4> 147 <blockquote> 148 <p>Default.</p> 149 </blockquote> 150 <h4 class="mansect"><a name="tag_20_144_10" id="tag_20_144_10"></a>STDOUT</h4> 151 <blockquote> 152 <p>The standard output shall not be used unless the <b>-j</b> option is specified; in that case, the job identification string 153 shall be written to standard output in the following format:</p> 154 <pre> 155 <tt>"%s\n", <</tt><i>jobid</i><tt>> 156 </tt></pre></blockquote> 157 <h4 class="mansect"><a name="tag_20_144_11" id="tag_20_144_11"></a>STDERR</h4> 158 <blockquote> 159 <p>The standard error shall be used only for diagnostic messages.</p> 160 </blockquote> 161 <h4 class="mansect"><a name="tag_20_144_12" id="tag_20_144_12"></a>OUTPUT FILES</h4> 162 <blockquote> 163 <p>Output files shall be created or written, or both, according to the contents of <i>command-string</i>.</p> 164 <p>If <b>-n</b> is not used, mail files shall be modified following any command or file-access failures on the remote system.</p> 165 </blockquote> 166 <h4 class="mansect"><a name="tag_20_144_13" id="tag_20_144_13"></a>EXTENDED DESCRIPTION</h4> 167 <blockquote> 168 <p>None.</p> 169 </blockquote> 170 <h4 class="mansect"><a name="tag_20_144_14" id="tag_20_144_14"></a>EXIT STATUS</h4> 171 <blockquote> 172 <p>The following exit values shall be returned:</p> 173 <dl compact> 174 <dd></dd> 175 <dt> 0</dt> 176 <dd>Successful completion.</dd> 177 <dt>>0</dt> 178 <dd>An error occurred.</dd> 179 </dl> 180 </blockquote> 181 <h4 class="mansect"><a name="tag_20_144_15" id="tag_20_144_15"></a>CONSEQUENCES OF ERRORS</h4> 182 <blockquote> 183 <p>Default.</p> 184 </blockquote> 185 <hr> 186 <div class="box"><em>The following sections are informative.</em></div> 187 <h4 class="mansect"><a name="tag_20_144_16" id="tag_20_144_16"></a>APPLICATION USAGE</h4> 188 <blockquote> 189 <p>This utility is part of the UUCP Utilities option and need not be supported by all implementations.</p> 190 <p>Note that, for security reasons, many installations limit the list of commands executable on behalf of an incoming request from 191 <i>uux</i>. Many sites permit little more than the receipt of mail via <i>uux</i>.</p> 192 <p>Any characters special to the command interpreter should be quoted either by quoting the entire <i>command-string</i> or quoting 193 the special characters as individual arguments.</p> 194 <p>As noted in <a href="../utilities/uucp.html"><i>uucp</i></a>, shell pattern matching notation characters appearing in pathnames 195 are expanded on the appropriate local system. This is done under the control of local settings of <i>LC_COLLATE</i> and <i>LC_CTYPE 196 .</i> Thus, care should be taken when using bracketed filename patterns, as collation and typing rules may vary from one system to 197 another. Also be aware that certain types of expression (that is, equivalence classes, character classes, and collating symbols) 198 need not be supported on non-internationalized systems.</p> 199 </blockquote> 200 <h4 class="mansect"><a name="tag_20_144_17" id="tag_20_144_17"></a>EXAMPLES</h4> 201 <blockquote> 202 <ol> 203 <li> 204 <p>The following command gets <b>file1</b> from system <b>a</b> and <b>file2</b> from system <b>b</b>, executes <a href= 205 "../utilities/diff.html"><i>diff</i></a> on the local system, and puts the results in <b>file.diff</b> in the local <i>PUBDIR</i> 206 directory. (<i>PUBDIR</i> is the <a href="../utilities/uucp.html"><i>uucp</i></a> public directory on the local system.)</p> 207 <pre> 208 <tt>uux "!diff a!/usr/file1 b!/a4/file2 >!~/file.diff" 209 </tt></pre></li> 210 <li> 211 <p>The following command fails because <i>uux</i> places all files copied to a system in the same working directory. Although the 212 files <b>xyz</b> are from two different systems, their filenames are the same and conflict.</p> 213 <pre> 214 <tt>uux "!diff a!/usr1/xyz b!/usr2/xyz >!~/xyz.diff" 215 </tt></pre></li> 216 <li> 217 <p>The following command succeeds (assuming <a href="../utilities/diff.html"><i>diff</i></a> is permitted on system <b>a</b>) 218 because the file local to system <b>a</b> is not copied to the working directory, and hence does not conflict with the file from 219 system <b>c</b>.</p> 220 <pre> 221 <tt>uux "a!diff a!/usr/xyz c!/usr/xyz >!~/xyz.diff" 222 </tt></pre></li> 223 </ol> 224 </blockquote> 225 <h4 class="mansect"><a name="tag_20_144_18" id="tag_20_144_18"></a>RATIONALE</h4> 226 <blockquote> 227 <p>None.</p> 228 </blockquote> 229 <h4 class="mansect"><a name="tag_20_144_19" id="tag_20_144_19"></a>FUTURE DIRECTIONS</h4> 230 <blockquote> 231 <p>None.</p> 232 </blockquote> 233 <h4 class="mansect"><a name="tag_20_144_20" id="tag_20_144_20"></a>SEE ALSO</h4> 234 <blockquote> 235 <p><a href="../utilities/V3_chap02.html#tag_19"><i>2. Shell Command Language</i></a> , <a href= 236 "../utilities/uucp.html#"><i>uucp</i></a> , <a href="../utilities/uuencode.html#"><i>uuencode</i></a> , <a href= 237 "../utilities/uustat.html#"><i>uustat</i></a></p> 238 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a> , <a href= 239 "../basedefs/V1_chap11.html#tag_11"><i>11. General Terminal Interface</i></a> , <a href= 240 "../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax Guidelines</i></a></p> 241 </blockquote> 242 <h4 class="mansect"><a name="tag_20_144_21" id="tag_20_144_21"></a>CHANGE HISTORY</h4> 243 <blockquote> 244 <p>First released in Issue 2.</p> 245 </blockquote> 246 <h4 class="mansect"><a name="tag_20_144_22" id="tag_20_144_22"></a>Issue 6</h4> 247 <blockquote> 248 <p>The obsolescent SYNOPSIS is removed.</p> 249 <p>The normative text is reworded to avoid use of the term "must" for application requirements.</p> 250 <p>The UN margin code and associated shading are removed from the <b>-j</b> option in response to The Open Group Base Resolution 251 bwg2001-003.</p> 252 </blockquote> 253 <h4 class="mansect"><a name="tag_20_144_23" id="tag_20_144_23"></a>Issue 7</h4> 254 <blockquote> 255 <p>SD5-XCU-ERN-46 is applied, moving this utility to the UUCP Utilities Option Group.</p> 256 </blockquote> 257 <h4 class="mansect"><a name="tag_20_144_24" id="tag_20_144_24"></a>Issue 8</h4> 258 <blockquote> 259 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p> 260 <p>Austin Group Defect 1516 is applied, adding XSI shading to text relating to <i>NLSPATH .</i></p> 261 </blockquote> 262 <div class="box"><em>End of informative text.</em></div> 263 <hr> 264 <p> </p> 265 <a href="#top"><span class="topOfPage">return to top of page</span></a><br> 266 <hr size="2" noshade> 267 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br> 268 POSIX™ is a Trademark of The IEEE.<br> 269 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br> 270 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href= 271 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a> 272 ]</font></center> 273 <hr size="2" noshade> 274 <div class="NAVHEADER"> 275 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"> 276 <tr class="nav"> 277 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/uustat.html" accesskey="P"><<< 278 Previous</a></td> 279 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td> 280 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/val.html" accesskey="N">Next >>></a></td> 281 </tr> 282 </table> 283 <hr align="left" width="100%"></div> 284 </body> 285 </html>