tags:

views:

36

answers:

3

Ok so I need to run wget but I'm prohibited from creating 'dot' files in the location that I need to run the wget. So my question is 'Can I get wget to use a name other than .listing that I can specify'.

further clarification : this is to sync / mirror an ftp folder with a local one, So using the -O option is not really useful, as I require all files to maintain format.

A: 

Yep, just use:

wget -o [path/to/your/ouptut/file] [URL]
gareth_bowles
unfortunately not, the -o option only refers to the log file, which I'm already writing elsewhere, I"m refering to the temporary .listing file that gets created.
Paul Blakey
So are you getting multiple files from your remote FTP folder using wget ? Can you post the command options that you're using ?
gareth_bowles
+1  A: 

You can use the -O option to set the output filename, as in:

wget -O file http://stackoverflow.com

You can also use wget --help to get a complete list of options.

spong
A: 

@Paul: You can use that -O option specified by spong

thegeek