Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    2

    Unhappy 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

  2. #2
    Just Joined!
    Join Date
    Oct 2012
    Posts
    3
    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.

  3. #3
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,567
    Hi tezma90,

    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.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •