1825768 Members
3287 Online
109687 Solutions
New Discussion

ftp passive

 
SOLVED
Go to solution
Carme Torca
Super Advisor

ftp passive

Hi,
I have a problem, I have a script with:
# ftp -i -n -v < fichero

#more fichero
passive
open 1.2.2.3
user user- passw-
ls
ascii
bye

byt it is hang in open server... How could I do it with mode passive?, maybe I have to put another optiion more??
And if I don't put -n option in ftp, it ask me to the passwd. What could I do?
Thanks!
Carmen.
Users are not too bad ;-)
1 REPLY 1
James A. Donovan
Honored Contributor
Solution

Re: ftp passive

Have you tried putting the whole thing into a single script?

for example:

#!/bin/sh
ftp -niv << EOF
passive
open 1.2.2.3
user user- passw-
ls
ascii
bye
EOF
Remember, wherever you go, there you are...