Re: Cannot write to auto-generated file name
It's a file system issue on windows: file path length is limited to 259 chars. http://support.microsoft.com/kb/148754
RE: Cannot write to auto-generated file name
Vitaly Lomov wrote: It's a file system issue on windows: file path length is limited to 259 chars. In which case, wget should do something reasonable (generate an error message, truncate the file name, etc.). It shouldn't be left as exercise for the user to figure out that the automatically generated name cannot be used by the OS. (My vote is to truncate the name, but it's a lot easier to generate an error message.) Tony
Re: Cannot write to auto-generated file name
From Tony Lewis: In which case, wget should do something reasonable (generate an error message, truncate the file name, etc.). [...] Sadly, this is easier said than done. Around here (VMS), the complaint is i/o error. I haven't tried it on a UNIX, but it could easily be different there, too. VMS offers a ayatem service which can be used to parse a file specification and test it for legality, but I don't know how you would do it elsewhere. On some Linux system(s), there seems to be a distictive code/message (File name too long): http://www.mail-archive.com/wget@sunsite.dk/msg09711.html Simply truncating the name would be asking for collisions, and etc. would seem to involve actual work, especially when converting links to local. Steven M. Schweda [EMAIL PROTECTED] 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547
Using a variable to get files in sequence
I would like to use a command to get files numbered 1.pdf through 401.pdf but for some reason wget doesn't seem to support using wildcards through HTTP. Is there any way around this limitation, to force wget to use the wildcards? my example would be something like: wget http://print.nap.edu/pdf/030908928X/pdf_image/[1-401].pdf
Re: Using a variable to get files in sequence
From: Williamts99 Is there any way [...] to force wget to use the wildcards? Sure. You did it. Unfortunately, there's no way to force the HTTP server to use wildcards. One could probably write a script to do this sort of thing, but, without knowing which OS you're using, it's difficult to guess exactly how it might best be done. Steven M. Schweda [EMAIL PROTECTED] 382 South Warwick Street(+1) 651-699-9818 Saint Paul MN 55105-2547