Why is my FTP output file blank?
Posted
by
Nathan Long
on Server Fault
See other posts from Server Fault
or by Nathan Long
Published on 2009-06-17T20:33:48Z
Indexed on
2012/12/16
5:07 UTC
Read the original article
Hit count: 436
ftp
From the Windows command prompt, I have FTPd to a Windows web server. I can get
a file, and I can see a directory listing with dir
, but I want to save that list locally.
I tried dir > c:\somefile.txt
, and the file is created, but it's blank. Same thing if I do ls > c:\somefile.txt
.
The result is the same when I FTP from a Linux box.
FTP sends back the following:
200 PORT command successful 150 Opening ASCII mode data connection for /bin/ls 226 Transfer complete
© Server Fault or respective owner