LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
UPCLEAN
PAUSE
q - to quit, <CR> - to continue
SYSTALK1
Host
sys0 ------------------------
**** |
|
sys2
-----
-----
SYSTALK2
Host
sys0 ------------------------
**** |
|
sys2
-----
sys1 -----
####
|
------------------------
GO
Among many inter-system communication functions provided by UUCP
(UNIX to UNIX copy), the copying of files from one system to
another is one of the most important ones. uucp copies files named
by the source-file to the destination-file.
Let us assume that two systems sys0 and sys2 have correct hardware
connections. They have all of the UUCP files necessary for communication
between the two of them properly set up. We refer to the process of
copying files from our host system sys0 to another system sys2 as
sending files, and the process of copying files from the system sys2
to the host system sys0 as receiving files.
The syntax of the uucp command is similar to that of the
cp command, whereby the source file is specified first
followed by one or more blanks and a destination file, i.e.,
uucp source_file destination
The filename itself is composed of the "system_name" or
"node" followed by an exclamation point ! and
a full pathname for the file. On the host system
you do not specify the system name, only the filename;
however, for the remote system you must specify the
remote system name. NOTE: If you do not specify the
pathname, the file will be copied into the home directory
of the uucp login process, which most often is uucp;
however, it can be any "user" whose home program is
/usr/lib/uucp/uucico. The default home directory
for uucp is /usr/spool/uucppublic!
To copy the file ADMT from the host system into the default
directory on the system sys2, the uucp command would be:
uucp ADMT sys2!~/ADMT under the Bourne Shell
or
uucp ADMT sys2\!~/ADMT under the C-Shell
On the other hand, if the user_id in the
login process was ctimail and the home
directory for ctimail was /usr/home/ctimail,
and the system sys1 was not connected directly to the
host system, but rather to the system sys2 ...
...then the command to copy the file ADMT into the directory
/usr/home/ctimail/admin on the system sys1 would be:
uucp ADMT sys2!sys1!~/admin/ADMT under the Bourne Shell
or
uucp ADMT sys2\!sys1\!~/admin/ADMT under the C-Shell
If the UUCP account for host system
on system sys2 is cticp
and you wish to copy the file
ADM2 into the subdirectory 863
of the home directory for cticp
without renaming the file, the
command to accomplish this would be:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type
uucp ADM2 sys2!~/863/ADM2
Please type
uucp ADM2 sys2!~/863/ADM2
You will be helped this time!
FORGET1
uucp ADM2 sys2!~/863/ADM2
Observe the result above:
--->
If the UUCP account for the host
system on the system sys1 is
cti and you wish to copy
the file 851 from the home directory
of cti into the directory
/u/CTI on the host system, the
command to accomplish this would be:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type
uucp sys2!sys1!~/851 /u/CTI/851
Please type
uucp sys2!sys1!~/851 /u/CTI/851
You will be helped this time!
FORGET2
uucp sys2!sys1!~/851 /u/CTI/851
Observe the result above.
<-----
----->
$PROMPT$