Results 1 to 3 of 3
here is my problem: when I execute: wget --directory-prefix=prefix google.com it works as it is supposed to work and saves the file to the path given in the prefix.. but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-29-2009 #1
- Join Date
- Apr 2009
wget --directory-prefix=prefix and --output-document=file does not work togeter
here is my problem:
when I execute:
wget --directory-prefix=prefix google.com
it works as it is supposed to work and saves the file to the path given in the prefix..
but when I try to execute smthng like that:
wget --directory-prefix=prefix --output-document=file google.com
it generates the file in the folder that I am currently in.. In does not create the file on the prefix I defined. so --directory-prefix=prefix becomes useless..
Any help appreciated.
- this is my first post by the way
- 10-04-2012 #2
- Join Date
- Oct 2012
hi, I had your same problem, I tried:
wget 'url' -O - > /save/location/filename
and it worked it's complicated but at least it works.
- 10-04-2012 #3
Welcome to Linux Forums. Thanks for posting a quite elegant solution to the problem but as this thread is well over two years old, I'm going ahead and closing it.