FTP from batch file
Posted
by Buzkie
on Server Fault
See other posts from Server Fault
or by Buzkie
Published on 2010-04-05T18:28:48Z
Indexed on
2010/04/05
18:33 UTC
Read the original article
Hit count: 225
I'm trying to use a batch file to download a package off my FTP server.
echo username >ftp.txt
echo >>ftp.txt
echo cd directory >>ftp.txt
echo get filename >>ftp.txt
ftp -s:ftp.txt server.com
The server is set to allow anonymous logins on username but when I run the script I get an error: 331 Password required for username
If there is any other useful information let me know.
-Alex
© Server Fault or respective owner