I have the same problem; wget seems to save the file .listingin the current directory where wget was called from, regardless-O path/outpout_file
As an ugly / desperate solution, we can try to run wget from arbitrary directories:
cd /temp/random_1; wget ftp://example.com/ -O /full/save_path/to_file_1.txt
cd /temp/random_2; wget ftp://example.com/ -O /full/save_path/to_file_2.txt
Note. The guide states that use of the option --no-remove-listingwill result in the creation of .listing.1,. listing.2etc., so this may be a conflict prevention option.
Note: the .listing file is not created at all if the FTP login is not executed.
source
share