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

📄 ch52_07.htm

📁 the unix power tools
💻 HTM
字号:
<HTML><!--Distributed by F --><HEAD><TITLE>[Chapter 52] 52.7 Other Ways to Get the Software </TITLE><METANAME="DC.title"CONTENT="UNIX Power Tools"><METANAME="DC.creator"CONTENT="Jerry Peek, Tim O'Reilly &amp; Mike Loukides"><METANAME="DC.publisher"CONTENT="O'Reilly &amp; Associates, Inc."><METANAME="DC.date"CONTENT="1998-08-04T21:58:46Z"><METANAME="DC.type"CONTENT="Text.Monograph"><METANAME="DC.format"CONTENT="text/html"SCHEME="MIME"><METANAME="DC.source"CONTENT="1-56592-260-3"SCHEME="ISBN"><METANAME="DC.language"CONTENT="en-US"><METANAME="generator"CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"><LINKREV="made"HREF="mailto:online-books@oreilly.com"TITLE="Online Books Comments"><LINKREL="up"HREF="ch52_01.htm"TITLE="52. What's on the Disc"><LINKREL="prev"HREF="ch52_06.htm"TITLE="52.6 Don't Have a CD-ROM Drive? "><LINKREL="next"HREF="ch52_08.htm"TITLE="52.8 Building Programs from Source Code "></HEAD><BODYBGCOLOR="#FFFFFF"TEXT="#000000"><DIVCLASS="htmlnav"><H1><IMGSRC="gifs/smbanner.gif"ALT="UNIX Power Tools"USEMAP="#srchmap"BORDER="0"></H1><MAPNAME="srchmap"><AREASHAPE="RECT"COORDS="0,0,466,58"HREF="index.htm"ALT="UNIX Power Tools"><AREASHAPE="RECT"COORDS="467,0,514,18"HREF="jobjects/fsearch.htm"ALT="Search this book"></MAP><TABLEWIDTH="515"BORDER="0"CELLSPACING="0"CELLPADDING="0"><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch52_06.htm"TITLE="52.6 Don't Have a CD-ROM Drive? "><IMGSRC="gifs/txtpreva.gif"SRC="gifs/txtpreva.gif"ALT="Previous: 52.6 Don't Have a CD-ROM Drive? "BORDER="0"></A></TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><B><FONTFACE="ARIEL,HELVETICA,HELV,SANSERIF"SIZE="-1">Chapter 52<BR>What's on the Disc</FONT></B></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch52_08.htm"TITLE="52.8 Building Programs from Source Code "><IMGSRC="gifs/txtnexta.gif"SRC="gifs/txtnexta.gif"ALT="Next: 52.8 Building Programs from Source Code "BORDER="0"></A></TD></TR></TABLE>&nbsp;<HRALIGN="LEFT"WIDTH="515"TITLE="footer"></DIV><DIVCLASS="SECT1"><H2CLASS="sect1"><ACLASS="title"NAME="UPT-ART-9506">52.7 Other Ways to Get the Software </A></H2><PCLASS="para"><ACLASS="indexterm"NAME="UPT-ART-9506-IX-SOFTWARE-SOURCES-OF"></A>If you are unable to read the CD-ROM, here are two other sourcesfor all or some of the software on it.</P><DIVCLASS="sect2"><H3CLASS="sect2"><ACLASS="title"NAME="UPT-ART-9506-SECT-1.1">52.7.1 Alternative Media </A></H3><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63122"></A>Ready-to-Run Software can provide the Power Tools software on alternative media such as floppies, QIC, 8 mm, 4mm, or DEC TK50 tape cartridges.Obviously,some of these media are appropriate only for certain platforms.</P><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63125"></A>Because of the large volume of data on the CD,each tape/floppy package is for a single platform.In addition, forthe floppy distributions, source and binaries are treated as separatepackages, as are the bitmaps for use with <SPANCLASS="link">pbmplus (<ACLASS="linkend"HREF="ch43_25.htm"TITLE="The Portable Bitmap Package ">43.25</A>)</SPAN>.</P><PCLASS="para">For ordering instructions, please see the very last page of thisbook, immediately facing the envelope that contains the CD-ROM disc.</P></DIV><DIVCLASS="sect2"><H3CLASS="sect2"><ACLASS="title"NAME="UPT-ART-9506-SECT-1.2">52.7.2 Online Archive </A></H3><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63133"></A><ACLASS="indexterm"NAME="AUTOID-63135"></A>Scripts and other example files from the book are in a freely availablearchive on the Internet at <EMCLASS="emphasis">ftp.oreilly.com</EM>.(The archive is also available on <EMCLASS="emphasis">ftp.uu.net</EM>.Other computers around the Internet have copies of UUNET's archives.If you aren't in the USA, ask your network administrator whether there's aUUNET &quot;mirror&quot; archive in your part of the world.)</P><PCLASS="para">The archive doesn't have everything from the CD-ROM.We didn't include the source code for programs that must be<SPANCLASS="link">compiled (<ACLASS="linkend"HREF="ch52_08.htm"TITLE="Building Programs from Source Code ">52.8</A>)</SPAN>because you can get periodically updated copies from online archivesaround the Internet.  The executable binary files for those programsaren't in our online archive, either.  Ready-to-Run Software investeda lot of time and money to build and debug them.  Getthose binaries from this book's CD-ROM or alternate media.</P><PCLASS="para">There's also a web page for this book's software on<ACLASS="systemitem.sitename"HREF="http://www.oreilly.com">http://www.oreilly.com</A>; look for the <EMCLASS="emphasis">UNIX Power Tools</EM>page.  You'll find the complete archive file, links to each script inthe archive, as well as links to much of the source code.  Note thatthe source code is unmodified, original source&nbsp;- not including anyporting fixes that Ready-to-Run added, and not necessarily the sameversion that's on the CD-ROM.  We hope the page is useful for you.</P><PCLASS="para">The online archive file is a <EMCLASS="emphasis">tar</EM> archive that has beencompressed with the <EMCLASS="emphasis">gzip</EM> command.  After you get the archive,read article<ACLASS="xref"HREF="ch19_07.htm"TITLE="Extracting Files from a Compressed Archive ">19.7</A>to find out how to extract the files.  You can also get individualscripts and files (but not source code) from the FTP archive'ssubdirectory named <EMCLASS="emphasis">split</EM>.</P><DIVCLASS="sect3"><H4CLASS="sect3"><ACLASS="title"NAME="UPT-ART-9506-SECT-1.2.1">52.7.2.1 FTP </A></H4><PCLASS="para">To use FTP, you need a machine with access to theInternet.  The whole archive is at <EMCLASS="emphasis">ftp://ftp.oreilly.com/published/oreilly/power_tools/unix//upt9707.tgz</EM>.Individual files are at <EMCLASS="emphasis">ftp://ftp.oreilly.com/published/oreilly/power_tools/unix//split/</EM>. You canalso use a web browser. Otherwise, use your UNIX<EMCLASS="emphasis">ftp</EM> program; here's a sample session, with what you should typein <CODECLASS="userinput"><B>boldface</B></CODE>:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">% <CODECLASS="userinput"><B>ftp ftp.oreilly.com</B></CODE>Connected to ftp.oreilly.com.220 FTP server (Version 6.21 Tue Mar 11 22:09:55 EST 1997) ready.Name (ftp.oreilly.com:yourname): <CODECLASS="userinput"><B>anonymous</B></CODE>331 Guest login ok, send domain style email address as password.Password: <CODECLASS="userinput"><B>yourname@domain.com</B></CODE> <ICLASS="lineannotation">(use your user name and host here)</I>230 Guest login ok, access restrictions apply.ftp&gt; <CODECLASS="userinput"><B>cd /published/oreilly/power_tools/unix/</B></CODE>250 CWD command successful.ftp&gt; <CODECLASS="userinput"><B>binary</B></CODE> <ICLASS="lineannotation">Very important! You must specify binary transfer for compressed files.)</I>200 Type set to I.ftp&gt; <CODECLASS="userinput"><B>get upt9707.tgz</B></CODE>200 PORT command successful.150 Opening BINARY mode data connection for upt9707.tgz.226 Transfer complete.ftp&gt; <CODECLASS="userinput"><B>quit</B></CODE>221 Goodbye.%</PRE></BLOCKQUOTE></P><PCLASS="para"></P></DIV><DIVCLASS="sect3"><H4CLASS="sect3"><ACLASS="title"NAME="UPT-ART-9506-SECT-1.2.2">52.7.2.2 FTPMAIL </A></H4><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63171"></A>FTPMAIL is a mail server available to anyone who can send andreceive electronic mail to and from Internet sites.This includes any company or service provider that allowsemail connections to the Internet.You do not need to be directly on the Internet.Here's how to do it.</P><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63174"></A>You send mail to <EMCLASS="emphasis">ftpmail@online.oreilly.com</EM>.  In the message body,give the FTP commands you want to run.  The server will runanonymous FTP for you and mail the files back to you. To get acomplete help file, send a message with no subject and the single word&quot;help&quot; in the body.  The following is a sample mail session thatshould get you the examples.  This command sends you a listing of thefiles in the selected directory, and the requested examples file.  Thelisting is useful in case there's a later version of the examplesyou're interested in.&#13;</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">% <CODECLASS="userinput"><B>mail ftpmail@online.oreilly.com</B></CODE>Subject:<CODECLASS="userinput"><B>reply yourname@domain.com</B></CODE>  <ICLASS="lineannotation">(where you want files mailed)</I>openchdir /published/oreilly/power_tools/unix/dirbinarymime <ICLASS="lineannotation">(or <CODECLASS="literal">uuencode</CODE> if you don't have MIME)</I>get upt9707.tgzquit.         <ICLASS="lineannotation">(The dot is a command to send the message, not part of it)</I></PRE></BLOCKQUOTE></P><PCLASS="para">A signature at the end of the message is acceptable as long asit appears after &quot;quit.&quot;</P><PCLASS="para">All retrieved files will be split into 60KB chunks and mailed to you.If your email program handles MIME messages properly, it shouldlet you combine the partial messages and extract the archive file.Or, if you asked for <EMCLASS="emphasis">uuencoded</EM> messages, remove the mail headers,concatenate the messages into one file, and run<SPANCLASS="link"><EMCLASS="emphasis">uudecode</EM> (<ACLASS="linkend"HREF="ch19_05.htm"TITLE="Using tar to Create and Unpack Archives ">19.5</A>)</SPAN>on it.Once you've decoded the file, read article<ACLASS="xref"HREF="ch19_07.htm"TITLE="Extracting Files from a Compressed Archive ">19.7</A>about extracting the files from the archive.</P><PCLASS="para">To get individual files from the <EMCLASS="emphasis">split</EM> subdirectory, use the command<CODECLASS="literal">chdir&nbsp;/published/oreilly/power_tools/unix//split</CODE>.Instead of <CODECLASS="literal">binary</CODE>, use <CODECLASS="literal">ascii</CODE>.You may also be able to omit the <CODECLASS="literal">mime</CODE> (or <CODECLASS="literal">uuencode</CODE>) toget these individual files without encoding.</P></DIV><DIVCLASS="sect3"><H4CLASS="sect3"><ACLASS="title"NAME="UPT-ART-9506-SECT-1.2.3">52.7.2.3 UUCP</A></H4><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63201"></A><ACLASS="indexterm"NAME="AUTOID-63203"></A>The examples are available by UUCP via modem from UUNET.If you or your company has an account with UUNET, you will have a system with a direct UUCP connection to UUNET.Find that system, and type the following command on one line(it's broken onto two lines here for publishing):</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">uucp uunet\!~/published/oreilly/power_tools/unix//upt9707.tgz     <CODECLASS="replaceable"><I>yourhost</I></CODE>\!~/<CODECLASS="replaceable"><I>yourname</I></CODE>/</PRE></BLOCKQUOTE></P><PCLASS="para">The backslashes can be omitted if you use the Bourne shell (<EMCLASS="emphasis">sh</EM>)instead of <EMCLASS="emphasis">csh</EM>.The file should appear some time later (up to aday or more) in the directory<EMCLASS="emphasis">/usr/spool/uucppublic/</EM><BCLASS="emphasis.bold">yourname</B>.If you don't have an account but would like one so that you canget electronic mail, contact UUNET at 703-204-8000.<ACLASS="indexterm"NAME="AUTOID-63214"></A></P></DIV></DIV><DIVCLASS="sect1info"><PCLASS="SECT1INFO">- <SPANCLASS="authorinitials">TOR</SPAN>, <SPANCLASS="authorinitials">JP</SPAN></P></DIV></DIV><DIVCLASS="htmlnav"><P></P><HRALIGN="LEFT"WIDTH="515"TITLE="footer"><TABLEWIDTH="515"BORDER="0"CELLSPACING="0"CELLPADDING="0"><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch52_06.htm"TITLE="52.6 Don't Have a CD-ROM Drive? "><IMGSRC="gifs/txtpreva.gif"SRC="gifs/txtpreva.gif"ALT="Previous: 52.6 Don't Have a CD-ROM Drive? "BORDER="0"></A></TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><ACLASS="book"HREF="index.htm"TITLE="UNIX Power Tools"><IMGSRC="gifs/txthome.gif"SRC="gifs/txthome.gif"ALT="UNIX Power Tools"BORDER="0"></A></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch52_08.htm"TITLE="52.8 Building Programs from Source Code "><IMGSRC="gifs/txtnexta.gif"SRC="gifs/txtnexta.gif"ALT="Next: 52.8 Building Programs from Source Code "BORDER="0"></A></TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172">52.6 Don't Have a CD-ROM Drive? </TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><ACLASS="index"HREF="index/idx_0.htm"TITLE="Book Index"><IMGSRC="gifs/index.gif"SRC="gifs/index.gif"ALT="Book Index"BORDER="0"></A></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172">52.8 Building Programs from Source Code </TD></TR></TABLE><HRALIGN="LEFT"WIDTH="515"TITLE="footer"><IMGSRC="gifs/smnavbar.gif"SRC="gifs/smnavbar.gif"USEMAP="#map"BORDER="0"ALT="The UNIX CD Bookshelf Navigation"><MAPNAME="map"><AREASHAPE="RECT"COORDS="0,0,73,21"HREF="../index.htm"ALT="The UNIX CD Bookshelf"><AREASHAPE="RECT"COORDS="74,0,163,21"HREF="index.htm"ALT="UNIX Power Tools"><AREASHAPE="RECT"COORDS="164,0,257,21"HREF="../unixnut/index.htm"ALT="UNIX in a Nutshell"><AREASHAPE="RECT"COORDS="258,0,321,21"HREF="../vi/index.htm"ALT="Learning the vi Editor"><AREASHAPE="RECT"COORDS="322,0,378,21"HREF="../sedawk/index.htm"ALT="sed &amp; awk"><AREASHAPE="RECT"COORDS="379,0,438,21"HREF="../ksh/index.htm"ALT="Learning the Korn Shell"><AREASHAPE="RECT"COORDS="439,0,514,21"HREF="../lrnunix/index.htm"ALT="Learning the UNIX Operating System"></MAP></DIV></BODY></HTML>

⌨️ 快捷键说明

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