leinad | 1 Oct 2008 20:33
Picon

lftp help error


Hi
Just try type "help mrm" ;]
I was:

lftp :~> help rm
Użycie: rm [-r] [-r] <pliki>
Usuń zdalne pliki
 -r  usuń katalog z podkatalogami - ostrożnie!
 -f  pracuj cicho

Line 2 can be:
Użycie: rm [-f] [-r] <pliki>

Greet

?D
--
Daniel Cholewa ROT13(yrvanq <at> znfgre.cy) press F13 to continue...
Pioneer&Quadral Sound System & Sony MiniDisc [Admin&User]
"Eyes wide open. Cause you never know what you might see"
Redd Vinylene | 4 Oct 2008 14:49
Picon
Gravatar

getpeername(control_sock): Transport endpoint is not connected

Greetings everyone! Is it my ftpd or lftp that is causing
getpeername(control_sock): Transport endpoint is not connected? Much
obliged.

--

-- 
http://www.home.no/reddvinylene

kumar mani | 8 Oct 2008 04:36
Favicon

Unable to put a file. - Urgent Help needed

Hi,

I am currently stuck with the following issue. The lftp version I am using is 3.4.2 

I trying to send a file to a ftp server. Here is the command I ran and the results. The server admin specified
that I need to use CCC in order to connect to their server. I am running the command from a unix server. I am
able to login into the server and change directory. But List or put commands are not working. See the log
below. 

bash-3.00$ lftp -d -e "set ssl:ca-file /opt/lftp/cert/bundle.cert;set ssl:verify-certificate
yes;set ftp:ssl-use-ccc yes;set ftp:ssl-allow yes;set ftp:ssl-auth SSL;set ftp:ssl-protect-data
yes;cd connect;put TestFile.doc;exit" ftpserver.com

Logged in successfully.
---> PWD
<--- 257 "/" is current directory.
---> PBSZ 0
<--- 200 PBSZ=0
---> CCC
<--- 200 command channel cleared.
---> CWD /connect
<--- 250 CWD command successful.
cd ok, cwd=/connect
---> TYPE I
<--- 200 Type set to I.
---> PASV
<--- 227 Entering Passive Mode (2xx,xx,xx,127,109,111)
---- Connecting data socket to (2xx.xx.xx.127) port 28015
---- Data connection established
---> STOR TestFile.doc
(Continue reading)

Ilya Sabanin | 14 Oct 2008 16:41
Picon
Gravatar

lftp messing up random files footers

Hey guys,

We are using lftp (3.7.3) for large web-application to provide  
deployments feature for our users.

Some users are complaining that lftp appending some random text-crap  
at the end of random files. Here is the example:

http://s3.amazonaws.com:/satisfaction-production/s3_images/405/ 
beanstalk_bugg_inline.gif

You can see that lftp duplicated very last part of the code and  
appended it into the end of the file.

Have any ideas why this may happen?

Thanks!

---
Ilya Sabanin
http://ilya.sabanin.ru/en

Schiefelbein, Mary Curran | 20 Oct 2008 21:49
Picon

MDTM and spaces in filenames

Hi,

There seems to be a bug in which filenames are not quoted, or spaces are not escaped, when MDTM is issed by lftp.

I am trying to mirror a directory. The directory and the files in it each have spaces in their names (not by my
choice ;). When lftp issues CWD into the directory, it works, but MDTM commands fail and when the files are
retrieved, the timestamps are not preserved. Here's a bit of a log:

lftp -c "open  192.168.1.2; mirror 'logs/foo/run 20081009-073139'"
---- Resolving host address...
---- 3 addresses found
---- Connecting to 192.168.1.2 (192.168.1.2) port 21
<--- 220-Cerberus FTP Server Personal Edition
<--- 220-UNREGISTERED
<--- 220-Welcome to Cerberus FTP Server
<--- 220 Created by Grant Averett
---> FEAT
<--- 500 Not logged in
---> USER anonymous
<--- 331 User anonymous, password please
---> PASS lftp <at> 
<--- 230 Password Ok, User logged in
---> PWD
<--- 257 "/" is the current directory
---> CWD /logs/foo/run 20081009-073139
<--- 250 Change directory ok
---> PASV
<--- 227 Entering Passive Mode (192,168,1,2,28,82)
---- Connecting data socket to (192.168.1.2) port 7250
---- Data connection established
(Continue reading)

kumar mani | 21 Oct 2008 05:32
Favicon

lftp strange issue with SSL

Hi,

I have 2 lftp Clients[A and B] from which I am trying to connect to a ftp server using Explicit SSL. It works
from client A, but not working from client B. Both has same version of lftp [3.4.2 ]. 

I see the following error in the client B. 

Fatal error: SSL connect: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

From Client A, I can connect, login and do ls. But from Client B, I can connect and the server sends the FEAT.
When the client says AUTH TLS, I get the above error.

Also in the wireshark log, I see the following at one point.

Client A is sending Request command: \026\003\001
Client B is sending Request command: \025\003\001   

Thanks
kumar

=
Fundcount Software
Fund accounting software - accounting back office for hedge funds, private equity funds and family offices.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=dadec5e37c92548f1861b38133022d4c

Sitaram Chamarty | 21 Oct 2008 11:33
Picon

expanding sequences and lists in URL, like curl

Hello all,

I've been using curl for a lot of things that involve sequences and
lists (like http://www.example.com/images/img_01[23-45].jpg), but I
really like the queuing and batching and scheduling abilities of lftp
for all sorts of practical reasons.

I tried for a while to come up with some way to achieve sequences and
lists in lftp, and the best I could come up with was the following:

        alias curlq "eval -f \"source -e \\\"echo $1 | xargs -n 1 echo
queue $0\\\"; jobs\""

The way I use it is:

        curlq get http://www.example.com/images/img_01{23..45}.jpg

This uses the bash shell's ability to expand such sequences and lists
(the syntax is different and it does not 0-pad the output even if you
ask for it, but otherwise it is conceptually the same).  It then
passes that expanded list or URLs to xargs which produces on "queue
get URL" for each URL in the expansion.

Are there any better ways to do this?

Thanks,

Sitaram

(Continue reading)

Alexander V. Lukyanov | 21 Oct 2008 15:08
Picon
Gravatar

Re: MDTM and spaces in filenames

On Mon, Oct 20, 2008 at 03:49:23PM -0400, Schiefelbein, Mary Curran wrote:
> There seems to be a bug in which filenames are not quoted, or spaces are not escaped, when MDTM is issed by lftp.

I don't see how the spaces should be escaped. For now I think it is a
server bug.

--

-- 
   Alexander.

Schiefelbein, Mary Curran | 21 Oct 2008 15:41
Picon

Understanding HFTP

Hi,

I'm trying to troubleshoot an issue with ftp-through-http-proxy. I can mirror a directory just fine when
the proxy is not involved, using lftp and regular FTP as the protocol. When an HTTP proxy is involved, the
connection times out repeatedly for one of the files (log.txt, 80K in size), and I ctrl-C the process.

My question is, what happened to the files that appeared to be downloaded before log.txt? The debug output
shows a "200 OK" for each of those files, and the Content-Type and Content-Length are displayed correctly
for each of those files, but they do not appear in the directory created by lftp, nor in /tmp.

I haven't been able to find much info on how hftp works, in general -- is it completely up to the client how to go
about it?

Thanks,

Curran Schiefelbein

Schiefelbein, Mary Curran | 21 Oct 2008 15:30
Picon

RE: MDTM and spaces in filenames

Yes, I agree at this point. I found out last night what version the server is running (2.45) and the changelog
for Cerberus FTP Server indicates that release 2.46 fixes a similar-sounding problem. Fingers crossed
that they will upgrade the server.

Sorry to trouble you!

Curran 

-----Original Message-----
From: Alexander V. Lukyanov [mailto:lav <at> netis.ru] 
Sent: Tuesday, October 21, 2008 9:09 AM
To: Schiefelbein, Mary Curran
Cc: lftp <at> uniyar.ac.ru
Subject: Re: MDTM and spaces in filenames

On Mon, Oct 20, 2008 at 03:49:23PM -0400, Schiefelbein, Mary Curran wrote:
> There seems to be a bug in which filenames are not quoted, or spaces are not escaped, when MDTM is issed by lftp.

I don't see how the spaces should be escaped. For now I think it is a
server bug.

--

-- 
   Alexander.


Gmane