⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 695-696.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Unleashed, Third Edition:UUCP</TITLE>

<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0672313723//-->

<!--TITLE=Linux Unleashed, Third Edition//-->

<!--AUTHOR=Tim Parker//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Sams//-->

<!--CHAPTER=39//-->

<!--PAGES=695-696//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="693-695.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="696-700.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P>When UUCP decodes this address, it reads the first system name (<TT>arthur</TT>) and sends it to that system. The UUCP processes on <TT>arthur</TT> then examine the rest of the address and realize the mail is to be sent on to <TT>warlock</TT>. If you have permission to forward through <TT>arthur</TT>, UUCP on <TT>arthur</TT> sends the mail through to <TT>warlock</TT> for you. You can have many hops in an address, as long as each system you are connecting to allows the pass-through and can connect to the next machine on the list. For example, the address would send data through <TT>arthur</TT>, <TT>warlock</TT>, <TT>chatton</TT>, and <TT>vader</TT> in order, and then to the user <TT>alex</TT>:</P>

<!-- CODE SNIP //-->

<PRE>

arthur!warlock!chatton!vader!alex

</PRE>

<!-- END CODE SNIP //-->

<P>The addresses must be specified in the proper hop order or the address will fail. This multi-hop addressing can be very useful if a number of friends have local connections to other machines, allowing you to easily set up a complex network. The hard part is usually tracking the names of the systems involved. (The exclamation mark in the address is called a <I>bang</I>, so the address above is spoken as &#147;arthur-bang-warlock-bang-chatton-bang-vader-bang-alex.&#148;)</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>Tip:&nbsp;&nbsp;</B><BR>Some shells don&#146;t like the bang character because it is interpreted as a special shell command. Shells, such as the C Shell, use the exclamation mark to recall previous commands so you must replace the bang with a \ to prevent the shell&#146;s interpretation. Addresses then become <TT>arthur\!chatton\!yvonne</TT>. This looks funny, but you get used to it.<HR></FONT>

</BLOCKQUOTE>

<P>Depending on how you have your UUCP system set, it may call out to the other systems in an address whenever something is submitted to it, or if callout times are limited, the data may be spooled until a call is allowed. You have already seen how to set callout times in the <TT>/usr/lib/uucp/sys</TT> and <TT>/usr/lib/uucp/Systems</TT> files.</P>

<P>A quick caution about relying on UUCP for delivery of information: If the systems that are being used are not set to call immediately when there is something queued, your data can take a long time to get to its destination. For example, if one of the hops in your address only calls the next machine in the address once a day, you may have a 24-hour delay in delivery. This can be exacerbated by each machine in the network.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>Tip:&nbsp;&nbsp;</B><BR>Don&#146;t rely on the contents of your data sent through UUCP to be kept confidential. Once on a remote system, any user with access privileges to the queue could snoop into your data. Ideally, the file permissions prevent anyone but the superuser accessing the data, but not all systems keep tight security. If you must send sensitive data, encrypt it and let the recipient know the decryption key through another format (not in a mail message!).<HR></FONT>

</BLOCKQUOTE>

<P>UUCP deals with all transfers as jobs, a term you&#146;ll encounter often when working with UUCP and its documentation. A <I>job</I> is a command that is to be executed on the remote system, a file that is to be transferred to or from the remote, or any other task that you want performed between the two systems.</P>

<H4 ALIGN="LEFT"><A NAME="Heading11"></A><FONT COLOR="#000077">Sending Email with UUCP</FONT></H4>

<P>Most utilities like mail packages understand the UUCP addresses, so you don&#146;t have to worry about email not reaching the proper destination. You don&#146;t usually have to make any changes at all to applications running under Linux to get them to understand this UUCP address format. In the last section you saw how the mail package can be used with UUCP addresses.

</P>

<P>You can use any of the usual <TT>mail</TT> command options to modify the behavior of the package. For example, to send the contents of the file <TT>data_1</TT> to <TT>yvonne</TT> on system <TT>chatton</TT> through the system <TT>arthur</TT>, and tag the mail with a subject heading, issue the following command:</P>

<!-- CODE SNIP //-->

<PRE>

mail -s &#147;Data file&#148; arthur\!chatton\!yvonne &lt; data_1

</PRE>

<!-- END CODE SNIP //-->

<P>Most mail packages available for Linux, including X-based mailers, work perfectly well with UUCP addresses, as well as the more common Internet addresses, but you may want to check before adopting a new mail package.

</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="693-695.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="696-700.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -