home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Learning the Korn Shell

Learning the Korn ShellSearch this book
Previous: B.8 Vi Control Mode Commands Appendix C Next: C.2 FTPMAIL
 

C. Obtaining Sample Programs

Some of the examples in this book are available electronically in a number of ways: by ftp , ftpmail , bitftp , and uucp . The cheapest, fastest, and easiest ways are listed first. If you read from the top down, the first one that works for you is probably the best. Use ftp if you are directly on the Internet. Use ftpmail if you are not on the Internet but can send and receive electronic mail to internet sites (this includes CompuServe users). Use BITFTP if you send electronic mail via BITNET. Use UUCP if none of the above works.

C.1 FTP

To use FTP, you need a machine with direct access to the Internet. A sample session is shown, with what you should type in boldface.

% 
ftp ftp.uu.net

Connected to ftp.uu.net.
220 FTP server (Version 6.21 Tue Mar 10 22:09:55 EST 1992) ready.
Name (ftp.uu.net:kismet): 
anonymous

331 Guest login OK, send domain style e-mail address as password.
Password: 
kismet@ora.com
 
(use your user name and host here)

230 Guest login OK, access restrictions apply.
ftp> 
cd /published/oreilly/nutshell/ksh

250 CWD command successful.
ftp> 
binary
 (
Very important! You must specify binary transfer for compressed files.
)
200 Type set to I.
ftp> 
get ksh.tar.Z

200 PORT command successful.
150 Opening BINARY mode data connection for ksh.tar.Z.
226 Transfer complete.
ftp> 
quit

221 Goodbye.
%

If the file is a compressed tar archive, extract the files from the archive by typing:

% 
zcat ksh.tar.Z | tar xf -

System V systems require the following tar command instead:

% 
zcat ksh.tar.Z | tar xof -

If zcat is not available on your system, use separate uncompress and tar commands.


Previous: B.8 Vi Control Mode Commands Learning the Korn Shell Next: C.2 FTPMAIL
B.8 Vi Control Mode Commands Book Index C.2 FTPMAIL

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System










??????????????@Mail.ru