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

    Question Wget "cannot write to"/ "filename too long" problem


    First of all - Hi. After hours of not getting any further with this, I figured it was time to join a forum

    I'm using wget to download files from a website, and while it works fine for short urls, I get the "file name too long" and "cannot write to '/.." errors.

    How does one go about to work around this?

    The code/url in question is wget --recursive --accept.odt --no-parent -nd -P/poging "https://zoek.officielebekendmakingen.nl/zoeken/resultaat/?zkt=Uitgebreid&pst=ParlementaireDocumenten&dpr=An derePeriode&spd=20100617&epd=20100617&kmr=TweedeKa merderStatenGeneraal&sdt=KenmerkendeDatum&par=Aanh angsel+van+de+Handelingen|Kamervragen+zonder+antwo ord&dst=Onopgemaakt|Opgemaakt|Opgemaakt+na+onopgem aakt&isp=true&pnr=1&rpp=10"

    I know I can solve this by adding the following the code, as to create only one new file: "-O short_name.ext"

    However this still does not really solve the problem, as the extension has become one long file, where I need a collection of files.. Is there a way, perhaps, to save it as an extension that allows for all the files to be unpacked/abstracted from it?

    My job sorta depends on me getting this done, so any help is much appreciated

  2. #2
    Linux Newbie mactruck's Avatar
    Join Date
    Apr 2012
    Location
    City of Salt
    Posts
    189
    Try and use this as your URL. (http://goo.gl/K7uxc)
    Maybe a URL shortener will help.

  3. #3
    Actually when i see Wget cannot write and show filename is too long then i did used long path tool for fix it. Did you use it yet ?

  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
  •