Debian Codegraph @

README

raw
1 ** lftp-4.5.x
2
3 This package `lftp' contains the following components:
4
5 lftp
6 sophisticated command line file transfer program (ftp/http client,
7 also supports several other protocols).
8
9 lftpget
10 shell script for downloading by URL, it calls `lftp -c'.
11
12 lftp is written in C++ and uses a cooperative-threaded model.
13
14
15 lftp
16 ~~~~
17 lftp is sophisticated file transfer program with command line interface. It
18 supports FTP, HTTP, FISH, SFTP and FILE (local FS) protocols. GNU Readline
19 library is used for input. BitTorrent protocol is supported as built-in
20 `torrent' command.
21
22 Low level stuff supported: ftp proxy, http proxy, ftp over http, opie/skey,
23 fxp transfers, automatic retrying on non-fatal errors and timeouts, ipv6,
24 socks, http/1.1, sftp v3-v6. See FEATURES for more detailed list of
25 features.
26
27 Every operation in lftp is reliable, that is any non-fatal error is ignored
28 and the operation is retried. So if downloading breaks, it will be
29 restarted from the point automatically. Even if ftp server does not support
30 REST command, lftp will try to retrieve the file from the very beginning
31 until the file is transferred completely.
32
33 lftp has shell-like command syntax allowing you to launch several commands
34 in parallel in background (&). It is also possible to group commands within
35 () and execute them in background. All background jobs are executed in the
36 same single process. You can bring a foreground job to background with ^Z
37 (c-z) and back with command `wait' (or `fg' which is alias to `wait'). To
38 list running jobs, use command `jobs'. Some commands allow redirecting
39 their output (cat, ls, ...) to file or via pipe to external command.
40 Commands can be executed conditionally based on termination status of
41 previous command (&&, ||).
42
43 If you exit lftp when some jobs are not finished yet, lftp will move itself
44 to nohup mode in background. The same happens when you have a real modem
45 hangup or when you close an xterm. It is possible to attach to backgrounded
46 lftp instance using `attach' command in lftp, e.g. `lftp -c attach'.
47
48 lftp has builtin mirror which can download or update a whole directory
49 tree. There is also reverse mirror (mirror -R) which uploads or updates a
50 directory tree on server. It is also possible to synchronize two servers,
51 FXP is used automatically if possible.
52
53 There is command `at' to launch a job at specified time in current context,
54 command `queue' to queue commands for sequential execution for current
55 server, and much more.
56
57 On startup, lftp executes /etc/lftp.conf and then ~/.lftprc and ~/.lftp/rc.
58 You can place aliases and `set' commands there. Some people prefer to see
59 full protocol debug, use `debug' to turn the debug on. Use `debug 3' to see
60 only greeting messages and error messages. if ~/.lftp directory does not
61 exist, XDG directories are used instead: ~/.config/lftp, ~/.local/share/lftp
62 and ~/.cache/lftp.
63
64 lftp has a number of settable variables. You can use `set -a' to see all
65 variables and their values or `set -d' to see list of defaults. Variable
66 names can be abbreviated and prefix can be omitted unless the rest becomes
67 ambiguous.
68
69 Use command `help' or read documentation (man lftp) to learn more.
70
71 If lftp was compiled with ssl support, then it includes software developed
72 by the OpenSSL Project for use in the OpenSSL Toolkit.
73 (http://www.openssl.org/)
74
75 Where to get
76 ~~~~~~~~~~~~
77 By FTP:
78 ftp://ftp.yar.ru/pub/source/lftp/
79 By HTTP:
80 http://lftp.yar.ru/ftp/
81
82 By GIT (development):
83 https://github.com/lavv17/lftp
84
85 See also the home page `http://lftp.yar.ru/'.
86
87
88 Internals
89 ~~~~~~~~~
90 All this is based on SMTask class which implements non-preemptive
91 multitasking via Do method. The method Do does a little bit of work, sets
92 wake up condition (block member) and returns.
93
94 There are also some useful classes: Timer, TimeDate, *Buffer, xstring,
95 xarray, xlist, xmap, xheap, Ref etc. Timers are ordered using a heap data
96 structure. Primitive classes were implemented with performance and low
97 memory consumption in mind. Standard C++ library is not used, since lftp
98 development started when it was not so standard yet (and boost did not even
99 exist).
100
101 Access to remote files is performed via FileAccess class, which is base
102 class for all protocols. NetAccess is for network file access. There is
103 also LocalAccess for local files access. SSH_Access is for SSH based
104 protocols: FISH and SFTP.
105
106 The class Ftp allows reliable deliver of files via ftp protocol, it hides
107 all the details from application and allows asynchronous operation.
108 Reconnect and reget are done as necessary. It can also speed up ftp
109 operations by sending several commands at once and then checking all the
110 responses. It seems this sometimes does not work, so it is disabled by
111 default. To turn it on, use `set sync-mode n' in lftp.
112
113 Note that sending several commands is considered as violation or protocol,
114 but RFC959 says: ``The user-process sending another command before the
115 completion reply would be in violation of protocol; but server-FTP
116 processes should queue any commands that arrive while a preceding command
117 is in progress.''
118
119 It is known that some network software dealing with address translation
120 works incorrectly in case of several FTP commands in one network packet.
121
122
123 Systems
124 ~~~~~~~
125 The package is known to compile on Solaris(gcc), Linux, FreeBSD, NetBSD,
126 SCO v5.0(gcc), IRIX(gcc), Tru64(gcc) and other systems. If you can't
127 compile it on your system, let me know. It is possible that lftp version
128 2.0 can be compiled with non-gcc compilers since it does not have gcc-isms,
129 and it was successfully compiled by Sun C++ v5.0 compiler using
130 CXXFLAGS="-compat=4 -features=bool".
131
132
133 Mailing list
134 ~~~~~~~~~~~~
135 There is a mailing list for discussion of lftp and announcements. It is
136 managed by mailman; to subscribe, send mail to [email protected];
137 to send letters to the list, send them to [email protected]; to
138 unsubscribe, send mail to [email protected]. This is a low
139 volume list. See also http://univ.uniyar.ac.ru/mailman/listinfo/lftp.
140
141 There is also list [email protected] for snapshot announcements and
142 other development.
143
144 These lists are archived at
145 http://www.mail-archive.com/lftp%40uniyar.ac.ru/
146 http://www.mail-archive.com/lftp-devel%40uniyar.ac.ru/
147
148 You can also submit pull requests or issues to GitHub:
149 https://github.com/lavv17/lftp
150
151 Author
152 ~~~~~~
153 Author: Alexander V. Lukyanov <[email protected]>
154 My home page: http://lav.yar.ru/
155 My other E-Mails: [email protected], [email protected], [email protected]
156
157 Other people have contributed to lftp development, see the THANKS file.
158
159 Comments and bug reports are welcome. Please send them to the list:
160 <[email protected]>. Subscribe if you want your messages to be sent to the
161 list quickly.
162
163 License
164 ~~~~~~~
165 Copyright (c) 1996-2014 by Alexander V. Lukyanov ([email protected])
166
167 LFTP is free software: you can redistribute it and/or modify
168 it under the terms of the GNU General Public License as published by
169 the Free Software Foundation, either version 3 of the License, or
170 (at your option) any later version.
171
172 This program is distributed in the hope that it will be useful,
173 but WITHOUT ANY WARRANTY; without even the implied warranty of
174 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
175 GNU General Public License for more details.
176
177 You should have received a copy of the GNU General Public License
178 along with LFTP. If not, see <http://www.gnu.org/licenses/>.