UUCP(1)                    POSIX Programmer's Manual                   UUCP(1)



PPRROOLLOOGG
       This manual page is part of the POSIX Programmer's Manual.  The OS
       implementation of this interface may differ (consult the corresponding
       OS manual page for details of OS behavior), or the interface may not be
       implemented on OS.


NNAAMMEE
       uucp -- system-to-system copy

SSYYNNOOPPSSIISS
       uucp [[-cCdfjmr]] [[-n _u_s_e_r]] _s_o_u_r_c_e_-_f_i_l_e... _d_e_s_t_i_n_a_t_i_o_n_-_f_i_l_e

DDEESSCCRRIIPPTTIIOONN
       The _u_u_c_p utility shall copy files named by the _s_o_u_r_c_e_-_f_i_l_e argument to
       the _d_e_s_t_i_n_a_t_i_o_n_-_f_i_l_e argument. The files named can be on local or
       remote systems.

       The _u_u_c_p utility cannot guarantee support for all character encodings
       in all circumstances. For example, transmission data may be restricted
       to 7 bits by the underlying network, 8-bit data and filenames need not
       be portable to non-internationalized systems, and so on. Under these
       circumstances, it is recommended that only characters defined in the
       ISO/IEC 646:1991 standard International Reference Version (equivalent
       to ASCII) 7-bit range of characters be used, and that only characters
       defined in the portable filename character set be used for naming
       files. The protocol for transfer of files is unspecified by
       POSIX.1-2008.

       Typical implementations of this utility require a communications line
       configured to use the Base Definitions volume of POSIX.1-2008, _C_h_a_p_t_e_r
       _1_1, _G_e_n_e_r_a_l _T_e_r_m_i_n_a_l _I_n_t_e_r_f_a_c_e, but other communications means may be
       used. On systems where there are no available communications means
       (either temporarily or permanently), this utility shall write an error
       message describing the problem and exit with a non-zero exit status.

OOPPTTIIOONNSS
       The _u_u_c_p utility shall conform to the Base Definitions volume of
       POSIX.1-2008, _S_e_c_t_i_o_n _1_2_._2, _U_t_i_l_i_t_y _S_y_n_t_a_x _G_u_i_d_e_l_i_n_e_s.

       The following options shall be supported:

       --cc        Do not copy local file to the spool directory for transfer to
                 the remote machine (default).

       --CC        Force the copy of local files to the spool directory for
                 transfer.

       --dd        Make all necessary directories for the file copy (default).

       --ff        Do not make intermediate directories for the file copy.

       --jj        Write the job identification string to standard output. This
                 job identification can be used by _u_u_s_t_a_t to obtain the status
                 or terminate a job.

       --mm        Send mail to the requester when the copy is completed.

       --nn _u_s_e_r   Notify _u_s_e_r on the remote system that a file was sent.

       --rr        Do not start the file transfer; just queue the job.

OOPPEERRAANNDDSS
       The following operands shall be supported:

       _d_e_s_t_i_n_a_t_i_o_n_-_f_i_l_e, _s_o_u_r_c_e_-_f_i_l_e
                 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 form:

                     _s_y_s_t_e_m_-_n_a_m_e!_p_a_t_h_n_a_m_e

                 where _s_y_s_t_e_m_-_n_a_m_e is taken from a list of system names that
                 _u_u_c_p knows about.  The destination _s_y_s_t_e_m_-_n_a_m_e can also be a
                 list of names such as:

                     _s_y_s_t_e_m_-_n_a_m_e!_s_y_s_t_e_m_-_n_a_m_e!...!_s_y_s_t_e_m_-_n_a_m_e!_p_a_t_h_n_a_m_e

                 in which case, an attempt is made to send the file via the
                 specified route to the destination. Care should be taken to
                 ensure that intermediate nodes in the route are willing to
                 forward information.

                 The shell pattern matching notation characters ''??'', ''**'', and
                 ""[[......]]"" appearing in _p_a_t_h_n_a_m_e shall be expanded on the
                 appropriate system.

                 Pathnames can be one of:

                  1. An absolute pathname.

                  2. A pathname preceded by ~_u_s_e_r where _u_s_e_r is a login name
                     on the specified system and is replaced by that user's
                     login directory. Note that if an invalid login is
                     specified, the default is to the public directory (called
                     _P_U_B_D_I_R; the actual location of _P_U_B_D_I_R is implementation-
                     defined).

                  3. A pathname preceded by ~/_d_e_s_t_i_n_a_t_i_o_n where _d_e_s_t_i_n_a_t_i_o_n is
                     appended to _P_U_B_D_I_R.

                     NNoottee::     This destination is treated as a filename
                               unless more than one file is being transferred
                               by this request or the destination is already a
                               directory. To ensure that it is a directory,
                               follow the destination with a ''//''.  For
                               example, ~~//ddaann// as the destination makes the
                               directory PPUUBBDDIIRR//ddaann if it does not exist and
                               puts the requested files in that directory.

                  4. Anything else shall be prefixed by the current directory.

                 If the result is an erroneous pathname for the remote system,
                 the copy shall fail. If the _d_e_s_t_i_n_a_t_i_o_n_-_f_i_l_e is a directory,
                 the last part of the _s_o_u_r_c_e_-_f_i_l_e name shall be used.

                 The read, write, and execute permissions given by _u_u_c_p are
                 implementation-defined.

SSTTDDIINN
       Not used.

IINNPPUUTT FFIILLEESS
       The files to be copied are regular files.

EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
       The following environment variables shall affect the execution of _u_u_c_p:

       _L_A_N_G      Provide a default value for the internationalization
                 variables that are unset or null. (See the Base Definitions
                 volume of POSIX.1-2008, _S_e_c_t_i_o_n _8_._2, _I_n_t_e_r_n_a_t_i_o_n_a_l_i_z_a_t_i_o_n
                 _V_a_r_i_a_b_l_e_s for the precedence of internationalization
                 variables used to determine the values of locale categories.)

       _L_C___A_L_L    If set to a non-empty string value, override the values of
                 all the other internationalization variables.

       _L_C___C_O_L_L_A_T_E
                 Determine the locale for the behavior of ranges, equivalence
                 classes, and multi-character collating elements within
                 bracketed filename patterns.

       _L_C___C_T_Y_P_E  Determine the locale for the interpretation of sequences of
                 bytes of text data as characters (for example, single-byte as
                 opposed to multi-byte characters in arguments and input
                 files) and the behavior of character classes within bracketed
                 filename patterns (for example, ""''[[[[::lloowweerr::]]]]**''"").

       _L_C___M_E_S_S_A_G_E_S
                 Determine the locale that should be used to affect the format
                 and contents of diagnostic messages written to standard
                 error, and informative messages written to standard output.

       _N_L_S_P_A_T_H   Determine the location of message catalogs for the processing
                 of _L_C___M_E_S_S_A_G_E_S.

AASSYYNNCCHHRROONNOOUUSS EEVVEENNTTSS
       Default.

SSTTDDOOUUTT
       Not used.

SSTTDDEERRRR
       The standard error shall be used only for diagnostic messages.

OOUUTTPPUUTT FFIILLEESS
       The output files (which may be on other systems) are copies of the
       input files.

       If --mm is used, mail files are modified.

EEXXTTEENNDDEEDD DDEESSCCRRIIPPTTIIOONN
       None.

EEXXIITT SSTTAATTUUSS
       The following exit values shall be returned:

        0    Successful completion.

       >0    An error occurred.

CCOONNSSEEQQUUEENNCCEESS OOFF EERRRROORRSS
       Default.

       _T_h_e _f_o_l_l_o_w_i_n_g _s_e_c_t_i_o_n_s _a_r_e _i_n_f_o_r_m_a_t_i_v_e_.

AAPPPPLLIICCAATTIIOONN UUSSAAGGEE
       This utility is part of the UUCP Utilities option and need not be
       supported by all implementations.

       The domain of remotely accessible files can (and for obvious security
       reasons usually should) be severely restricted.

       Note that the ''!!''  character in addresses has to be escaped when using
       _c_s_h as a command interpreter because of its history substitution
       syntax.  For _k_s_h and _s_h the escape is not necessary, but may be used.

       As noted above, shell metacharacters appearing in pathnames are
       expanded on the appropriate system. On an internationalized system,
       this is done under the control of local settings of _L_C___C_O_L_L_A_T_E and
       _L_C___C_T_Y_P_E.  Thus, care should be taken when using bracketed filename
       patterns, as collation and typing rules may vary from one system to
       another. Also be aware that certain types of expression (that is,
       equivalence classes, character classes, and collating symbols) need not
       be supported on non-internationalized systems.

EEXXAAMMPPLLEESS
       None.

RRAATTIIOONNAALLEE
       None.

FFUUTTUURREE DDIIRREECCTTIIOONNSS
       None.

SSEEEE AALLSSOO
       _m_a_i_l_x, _u_u_e_n_c_o_d_e, _u_u_s_t_a_t, _u_u_x

       The Base Definitions volume of POSIX.1-2008, _C_h_a_p_t_e_r _8, _E_n_v_i_r_o_n_m_e_n_t
       _V_a_r_i_a_b_l_e_s, _C_h_a_p_t_e_r _1_1, _G_e_n_e_r_a_l _T_e_r_m_i_n_a_l _I_n_t_e_r_f_a_c_e, _S_e_c_t_i_o_n _1_2_._2,
       _U_t_i_l_i_t_y _S_y_n_t_a_x _G_u_i_d_e_l_i_n_e_s

CCOOPPYYRRIIGGHHTT
       Portions of this text are reprinted and reproduced in electronic form
       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
       -- Portable Operating System Interface (POSIX), The Open Group Base
       Specifications Issue 7, Copyright (C) 2013 by the Institute of
       Electrical and Electronics Engineers, Inc and The Open Group.  (This is
       POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
       event of any discrepancy between this version and the original IEEE and
       The Open Group Standard, the original IEEE and The Open Group Standard
       is the referee document. The original Standard can be obtained online
       at http://www.unix.org/online.html .

       Any typographical or formatting errors that appear in this page are
       most likely to have been introduced during the conversion of the source
       files to man page format. To report such errors, see
       https://www.kernel.org/doc/man-pages/reporting_bugs.html .



IEEE/The Open Group                  2013                              UUCP(1)
