Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

ncftp

��������� ftp �������� �������� �������� �������� Internet �������� ��������� ������ � ��������� �������� ftp. � ���������, ��������� ftp �� �������� ����������. �� ���������������� ��������� ����� ����������� ����� ��� ��������� Unix. ��������� ncftp ���� ����������� ��� ��������� �������� ������ � ������� ftp.

ncftp ����� ���������������� ���������, ����������� ftp, �� ���� ��� ����������� ������ ����������, ����� ��������, ��� �� ������, � ������������� ��� ������ ������������. ���� �� ��� ������, ��� ������������ ftp, �� ������� �������� � ncftp ��� �������� ����� ������: ncftp �������� ��� ������� ftp. ����� ����, ��� ����������� ��������� ����������� �������� ftp.

��������� ncftp ����� ��������� ������� ������:

���� � ������ ���� ������������� ��������� ������������� ncftp ������ ���������� ������ � ftp. �� ��������� ��������� ������ ��������� �� ������ ��������� � ������� "������������� ftp" (����� ����������� ���� ��������).

��� �������� ����-������� ��������� ncftp ������������� ������������ ��� ��� anonymous � ������ � �������� ������ ��� �������� �����. ��� ��������� �� �������� ������ ��� ������ ���������� � �������� ������� �����������. ������ ����� ������ ����-���������� �������� -u, �� ������ �������������� ����� ���������:

     % ncftp -u chem.small.edu
     Login Name (chrisr):
     Password:
     User chrisr logged in.

� ������ ������ ������������ �������� � ����� �� ����������� Login Prompt ������� Enter. ��� ���� �� �������������� �� ��������, � ��� ����� ������.

��� � ��� ������ � ������� ���������� ftp �� ������ ������ ���� � ������ .netrc, ���������� ������ ���� �����, ��� �� ������ ���������������. ���� ���� ����� ����� ��������� ������ ������� ncftp (��� �� ������� �����). ��� ������� ����� .netrc ��� �� ����� ����� �������� ������ ��� ����-����������. ��������� ncftp ������ ���������� ��� ����� �� ���������� ��������.

�����������, ��� ��� ���� .netrc �������� ��������� �������:

     machine rtfm.mit.edu
     machine mac.archive.umich.edu
     machine wuarchive.wustl.edu
     machine ftp.apple.com
     machine sumex-aim.stanford.edu

���� sumex-aim.stanford.edu ����� ������� � ������� ����� �� ��������� ������:

     % ncftp sum
���
     % ncftp aim

(��������� sum � aim � ������������� � ������ ����� ������ ������ ����� �� �����������). ����������, �� ������ ����������� ��������� ����� ��� �������� ���� wuarchive.wustl.edu:

     % ncftp wu

��������� ncftp �������� �������� ��� �����, ��� �� ��� ����������������. ���� �� ������ ������� open ��� �������� ����� ����-����������, �� �������� � ����� 20 ��������� �������� �����, � ����� ��� �����, ������� ����������� � ����� .netrc. ����� �� ������ ������� ������ ����, ������ ������ ��� ���.

�����������, ��������, ��� �� ������ ������� �����-�� �� ��� �����, ������� �� ������� ���������, �� ������� ������ ��, ��� �� ����� ��� bio:

     ncftp> open
     Recently called sites:
	1. BLOOM-PICAYNE.MIT.EDU
	2. bloom-picayune.mit.edu
	3. ftp.halcyon.com
	4. enh.nist.gov
	5. zaphod.ncsa.uiuc.edu
	6. cica.cica.indiana.edu
	7. biochemistry.bioc.cwru.edu
	8. caisr2.caisr.cwru.edu
	...
     (site to open) #7

��������� ����, �������� ��, ��� ������� �������� ���������������� � ������� ���������� ����������� ����������� ��� ��, ��������� ���������, ��� ��������� ������� ����������� �� ��� �������������. ����� ��� ���� ��������� ��������� ���������: "Too busy, try later". ���� �� ��������� ������������������ �� ����� �� ����� �����, ���������� ������������ �������� -r. ��� ���� ncftp ����� ���������� ������� �����������, ���� ��� �� ���������� �������:

     ncftp> open -r sum
     Too many users connected currently. Please try again later.
     Login failed.
     Retry Number: 2
     Too many users connected currently. Please try again later.
     Login failed.
     Retry Number: 3
     Guest connection accepted. Restrictions apply.
     Logged into sumex-aim.stanford.edu.

�� ������ ����� ������� �������� -r ����� ������ ���� � ��������� ������.

����� ncftp ���������� ��� ��������� ������ ����� � ������� ��������� ������, ��������, ������ �� ������, ������������� � ������ �����. � ��������� ������ Unix ��� ����� ������� � ������� ����� �������. ������� ����� ����� ����-���������� ��������� � ������� �����. ��������� ncftp ������������ ��� ��� ������ �� �����������, ����� ��������, ��������� ����� � ����� �� �������. ��������, ����� �������� ���� /pub/listing � ����-���������� ftp.small.edu, ������ ������ �������:

     % ncftp ftp.small.edu:/pub/listing
     %

���� ������� �� ������ ��������������� � �� ����� ������ � ncftp:

     ncftp> open ftp.small.edu:/pub/listing
     ncftp>

��� ����� ������ ��� �� ����������� �������� ��� �����. ���� �� ������� �� ����, � �������, �� ncftp ������ ��������� ����-������� � ���������� ��� � ������ �������.

�������� ncftp �� ������ ���������� � ������� ������� set. �������� ����� ������������ ��������� ����������� � �������. ��� ������ ������� ���������� ����������� ������� show.

��������� ������� ��������� � ��������� ������:

     ncftp> set progress-reports 4

������� ����� ����� ��������� � ���� .netrc, ������ ����� ���� # (����� ftp ������� �� �������������). ��������, ������ ������ ����� .netrc ����� ��������� ��������� �������:

     #set progress-reports 4
     #set verbose 2
     #set prompt "@C> "

��������� ncftp
�������� ��������
anon-open ��������, ����� �� ������������� ������������ ��� ����������� ��� anonymous.
anon-password ������, ������������ ��� ��������� �����������.
local-dir �������, � ������� ����� ����������� �����.
logfile ��� ����� ��� ����������� ����� ������� ncftp. ����� ������������� �����������, �������� ��� ���� ������.
logsize ����������, ������� ����� ����� ���������� � ���� �����������.
mprompt ��������, ����� �� �������� ����������� ��� ������� ����� ��� ������������� ������� mget.
netrc ��� ����� �������.
prompt ��������� �� ����� ������ �����������.
progress-reports ��� ������ � ���� ����������, ������� �� ������ ������ ��� �������� �����. 0 ��������� ����� ������ ������, 1 ���������� ������� ���������� ������, 2 ������� ����������� ���������, 3 ���������� ����� ���������� ��������, � 4 ������� ����� ��� �������� 10% ������.
resent-list ����������, ����� ��� ��� ���������� ��������� �������� ���� ����.
tips ������ ����� ������������ �� ����������� �� ����� � ������������� ncftp.
type ��� ������������ ������ (ascii ��� binary).

��������� ������ ����������, ��� ����� ������ � ����� �� ����������� ����������� ���������� ��������, ����������� �������� � ����� ������ �������� ����������. ��� ��������� ����������:
������ �����
@D ������ ��� �������� ���������� ����������.
@J ������� ��� �������� �� ��������� ����������.
@H ��� ���������� ����-����������.
@C ��� ���������� ����-���������� � ������ ��� ��������, ������� ����������� ������ � �������.
@c ������������ @C, �� ����� ��������� ������ ����� ������.
@E ���������� ����� ��������� ���� ������.
@M ���� �� ����� ������ � ncftp �� ��������� ����������� �����, ������� (Mail).
@B ������� ��������� ����� ������ �������.
@I ������� ��������� ����� ��������.
@U ������� ��������� ����� � ��������������.
@R ������� ��������� ����� � �������� �����������.
@P ��������� ����� ��������� ��� ������� �����.
@N ������ ����� ������.

����� ������ ������� � ����-���������, ��� �� ����������, �� ������ ������ ���������:

     set prompt "@C> "
����� ����� ��������� �����, ��������, ��������� ��������� �������:
     ftp.cso.uiuc.edu:/doc/pcnet>

��� ������ � ncftp �� ������ ����� ��������� ����� �� ��������� ��������. ������� page ��������� ��� ������������� ���������� ������ �����������. (��� ��������� � ncftp ������� more ������������ ������� Unix.) ����� ������������ ������� ���������������, ���� � ��� ���� ������ ��������, � �� ������ ����� ��������� ����������� ���������� ������. ��������, ����� ������� ���� � ������ index, �� ������ ���� ��������� �������:

     ncftp> page index

��� ������������� ������ �������� �������� �������� ����������� ������� pls � pdir. ��� ������� ������������� �������� ls � dir, �� ���������� ��������� ���������.

� ������� ncftp �� ������ ����� �������� �����. ����� �������� ����, ��� �� ����� �������� ��� ������ ���. ���� � ������� ����������� �������� �� ������� ������ ���� ����, �� ������� get ����� ��������� ���. ��� �������� ������ ��� ������� ��� ������� ������ ������ (����������� ���, ������� ����������� � FAQ).

�������� ��������, ��� ��� FAQ � ��������� ������� ������ �������, �� ����� ������ � �������� ����� �����:

     ncftp>ls
     S_U_S_F_(R_d_t_p_p)
     Southern_US_Skiing_FAQ
     ncftp>get *p)
     Receiving file: S_U_S_F_(R_d_t_p_p)
     S_U_S_F_(R_d_t_p_p): ...........
     S_U_S_F_(R_d_t_p_p): 20405 bytes received in 0.71 seconds, 28.02 K/s.
����������� ������� ����� ��������� ������ ���� ��� S_*.

������� lookup ��������� ��� ��������������� �������� ����� � IP-������ � ��������:

     ncftp>lookup 204.1.123
     ivideo.com
	204.1.1.23
     ncftp>lookup ivideo.com
     ivideo.com
	204.1.1.23

��� ������ � ncftp �� ������ ����� �������� ������, ������������ ����� ������� ���� �����. ��� ����� ����������� ������� set � ��� ����� �������, � ����� ������� ����� �����, ������� �� ������ ���������� � ������:

     ncftp>logfile "ncftp.log"
     ncftp>logsize 5000
��� ������� ����� ����� ��������� � ���� .netrc.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT