1832878 Members
2371 Online
110048 Solutions
New Discussion

ftp -i -n + passive mode

 
SOLVED
Go to solution
Carme Torca
Super Advisor

ftp -i -n + passive mode

Hi,

I have a problem with ftp in a server. I have a SD's domain that wants to do a ftp to a wintel server, and I do:

#ftp -i -n < file.txt

#more file.txt

passive
open 193.145.89.241
tsystems
systemst
asci
ls
put prova.txt
ls
bye

And the combination between ftp -n and passive doent' works ok.... when I put ftp -n and after passive it doesn't connect to the client server...

#ftp -i -n
ftp> passive
Passive mode on.
ftp> open 193.145.89.241
Connected to 193.145.89.241.
220 TYPSoft FTP Server 0.97.1 ready...

but if I only put
#ftp -i
ftp> passive
Passive mode on.
ftp> open 193.145.89.241
Connected to 193.145.89.241.
220 TYPSoft FTP Server 0.97.1 ready...
Name (193.145.89.241:root):

Why???,, What I am doing wrong??

Thanks a lot of!!
Carmen.
Users are not too bad ;-)
2 REPLIES 2
Steve Steel
Honored Contributor
Solution

Re: ftp -i -n + passive mode

Hi


http://www.slacksite.com/other/ftp.html

May help


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Juergen Tappe
Valued Contributor

Re: ftp -i -n + passive mode

The -n option of ftp turn the autologin off.
Thats the reason why the server asking you for login and password.

So use the -n option.....


and your control file should look like :
passive
open 193.145.89.241
user tsystems systemst
asci
ls
put prova.txt
ls
bye

Hope I unterstood you problem correctly.

Working together