Re: continue mode for fish
"Alexander V. Lukyanov" <[email protected]>
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Oct 20, 2004 at 01:11:06AM +0200, Loic Le Loarer wrote: > Here is a patch to add support for continue mode in fish protocol, this > is easy to implement, should work with any version of dd, and is very > very usefull. Do you think this could be included in future versions of > lftp ? Thanks for the patch. It should work well, but the command #RETR must be changed to #READ, because it was intended for special fish server. From FISH definition by Pavel Machek <[email protected]>: #READ <offset> <size> /path/and/filename cat /path/and/filename | ( dd bs=4096 count=<offset/4096> > /dev/null; dd bs=<offset%4096> count=1 > /dev/null; dd bs=4096 count=<offset/4096>; dd bs=<offset%4096> count=1; ) Returns ### 200 on successfull exit, ### 291 on successfull exit when reading ended at eof, ### 292 on successfull exit when reading did not end at eof. -- Alexander.