Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    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,907
    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.
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  4. $spacer_open
    $spacer_close

Posting Permissions

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