In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use UUCP in Unix system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
UUCP is a protocol that connects Unix systems through serial lines. Uucp uses UUCP protocol, and its main function is to transfer files.
1 Unix operating system UUCP command
One of the UUCP commands is uucp, which is used for file transfer between the two systems. The format of the uucp command is similar to that of the cp command, except that uucp allows users to copy files between systems. The general format of the command is as follows:
Source_file is usually a file of the Unix operating system, but not necessarily. Destination_file is usually a file or directory of another system. Specify the format of destination_file as:
Uucp gives system administrators an option to restrict uucp files to and from the Unix operating system to the / usr/spool/uucppublic directory structure. If you tell uucp to store the transferred file in another directory, the system will send back one:
Uucp allows the simplified symbol ~ to replace / usr/spool/uucppublic/. Such as:
Sometimes you can use uucp to copy files from another system to the Unix operating system, as long as the files to be imported into this system are specified as source files, such as:
If the directory of file transfer is restricted on the remote machine, the previous command cannot be copied to the file. The safest way to copy files to this system is to transfer files through the uucppublic directory on both systems
2 uux command
Uux commands can be used to execute commands on another Unix operating system, a feature called remote command lines. The most common use of uux is to send mail between systems. Mail executes uux. A typical uux request is as follows:
This command formats the file listing, and then connects it to the printer pr1 of the Unix operating system remote1 to print out the .uux option "-" enables uux to establish the standard input device of this command as the standard input device of remote commands. Uux is often used to print files when only one of several systems is connected to a printer.
Of course, remote command hospitality must be strictly restricted to protect the security of the system. For example, this system should not allow users on other systems to run the following commands:
This command will cause the Unix operating system to transfer / etc/passwd files to the system outside. In general, only a few commands are allowed to execute .rmail is a restricted mail program, often one of the commands allowed to be executed through uux. It also allows rnews-restricted netnews pseudo-offline commands to be executed on systems running netnews, and allows lp to run on systems that provide printing devices.
3 uucico program
Uucp and uux commands do not actually call another system and transfer files and execute commands, but queue users' requests and start the uucico program. Uucico to complete the actual communication work. It calls other systems, logs in, transfers data can be files or requests remote command execution. If the phone line is busy or other Unix operating systems are turned off, the transmission requests remain in the queue. The subsequent function of the uucico is usually that the cron completes and these transmission requests will be sent.
Uucico completes the sending and receiving of data. In the / etc/passwd file of this system, the uucico login of other systems enters the entry entry of this system, and the default shell specified in this entry is uucico. Therefore, when other systems call this system, they talk to uucico directly.
4 uuxqt program
When the uucico of another system calls the Unix operating system to request the remote command execution, the uucico of the system queues the request and starts the uuxqt program to execute the remote command request before exiting.
Thank you for reading! This is the end of the article on "how to use UUCP in Unix system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.