On Thursday 26 June 2003 10:13, you wrote:
> > Hi,
> >
> > We are using version 2.6.5 of lftp on a Red Hat 7.1 machine to
> > automaticly ftp some files to an IBM mainframe. This mainframe has a ftp
> > server that only allows active ftp connections. Now we have a problem
> > setting the lftp client to active. Our script looks like this :
> >
> > set ftp:passive-mode off
> > open mainframe
> > user xxxx xxxxx
> > put file
> > bye
> >
> > This doesn't work. The client stays in passive mode. Moving the "set"
> > line to under the line "user" doesn't help. We tried to set
> > ftp:passive-mode off in /etc/lftp.conf and in /root/.lftp/rc . Also we
> > tried everything with the line set ftp:passive-mode no. Nothing helped.
> > Any ideas ?
> 
> Hum... are you really sure?
> 
> I'm using version 2.6.6 there and:
> [EMAIL PROTECTED]:~$ cat << EOF > test.lftp
> > open sumarit
> > user pixel xxxxxxxx
> > set ftp:passive-mode off
> > set ftp:ssl-allow off
> > debug 9
> > put somefile
> > bye
> > EOF
> [EMAIL PROTECTED]:~$ lftp -f test.lftp
> ---- Connecting to sumarit (10.0.1.1) port 21
> <--- 220 ProFTPD 1.2.5rc1 Server (Debian) [sumarit.nobis-crew.org]
> ---> USER pixel
> <--- 331 Password required for pixel.
> ---> PASS xxxxxxxx
> <--- 230 User pixel logged in.
> ---> PWD
> <--- 257 "/home/pixel" is current directory.
> ---> TYPE I
> <--- 200 Type set to I.
> ---> PORT 10,0,1,5,186,223
> <--- 200 PORT command successful.
> ---> STOR somefile
> <--- 150 Opening BINARY mode data connection for somefile.
> ---- Closing data socket
> <--- 226 Transfer complete.
> ---> QUIT
> ---- Closing control socket
> [EMAIL PROTECTED]:~$
> 
> I put the ftp:ssl-allow off to make sure it will be the same as you.
> There, it obviously worked in active mode. Can you also put the debug 9
> command in your script so we could see what's happening?
> 
> 
>   Cheers,
> 
>   -- Nicolas Noble
> 

Hi,

I changed my scripts as you recommended. It still doesn't work. Here is the 
script and the debug output. The strange thing is when I do the commands 
interactively it works.

open mainframe.levob.nl
user xxxx xxxx
set ftp:passive-mode off
set ftp:ssl-allow off
debug 9
ls
bye
EOF


---- Connecting to mainframe.levob.nl (192.168.1.9) port 21
<--- 220-FTPSERVE IBM VM V2R4 at ESAREL22.LEVOB.NL, 10:23:53 EST THURSDAY 
06/26/03
<--- 220 Connection will close if idle for more than 5 minutes.
---> USER xxxx
<--- 331 Send password please.
---> PASS xxxx
<--- 230 xxxx logged in; working directory = VMSYSU:SYSOWFTP.FTPFILES
---> PWD
<--- 257 "VMSYSU:SYSOWFTP.FTPFILES" is working directory
---> CWD 
VMSYSU:SYSOWFTP.FTPFILES/VMSYSU:SYSOWFTP.FTPFILES/VMSYSU:SYSOWFTP.FTPFILES
<--- 550 SFS directory name format may be wrong;  directory remains SFS: 
VMSYSU:SYSOWFTP.FTPFILES
ls: Access failed: 550 SFS directory name format may be wrong;  directory 
remains SFS: VMSYSU:SYSOWFTP.FTPFILES
---> QUIT
---- Closing control socket


Thanks,

-- 
-----------------------------------------------
Diederick van Dijk
Email: [EMAIL PROTECTED]
Website: http://www.van-dijk.net

Reply via email to