Find the answer to your Linux question:
Results 1 to 5 of 5
Is it possible to make a script download a file off the internet http://something .... and bring it into the local directory?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2003
    Posts
    2

    Download


    Is it possible to make a script download a file off the internet http://something.... and bring it into the local directory?

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    You don't need to, there already is wget, which takes a URL and download the file it points to to the cwd.
    Is that what you were looking for, or do you really, really want to do the script?

  3. #3
    Just Joined!
    Join Date
    Feb 2003
    Posts
    2
    For some reason wget (BTW it's linux-gnu) isn't working for me on the account I'm trying to use it on (sourceforge.net if it helps). Basically I want to grab a tarball from sourceforge (using wget to grab files on other addresses works though) and put it into my directory...

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Jun 2002
    Location
    San Antonio
    Posts
    621
    sourceforge is weird, make sure you have the correct url (the one that ends in .tar.gz, not the "?save=1" or whatever that url is) This got me for a while, to get around it you would have to parse html I think.
    I respectfully decline the invitation to join your delusion.

  6. #5
    Just Joined!
    Join Date
    Mar 2003
    Posts
    14
    you can also use

    lwp-request http://www.

Posting Permissions

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