Re: wget tries to print the file prn.html

2002-09-24 Thread Andre Majorel

On 2002-09-20 08:15 +0200, Dominic Chambers wrote:

 I am using wget 1.82 on Win2K SP2, and wget froze on the fifth

1.8.2.

 downloaded file 'prn.html' using the command line:
 
 wget -r -l0 -A htm,html,png,gif,jpg,jpeg --no-parent
 http://java.sun.com/products/jlf/at/book
 
 About twenty seconds after it stops, I get Windows complaining that
 there is no available printer (I don't have one), and canceling the
 job does not cause wget to resume processing.

If I remember correctly (it's been a long time), DOS knows when
you're trying to access a device by looking at the *basename*
(minus path and extension) of the file. As of MS-DOS 6.22, the
list of reserved names was AUX, COM{1,2,3,4}, CON, LPT{1,2,3}, NUL
and PRN. I'm not sure what the list is in the various incarnations
of Windows, nor if it's set in stone (could new reserved names be
added by loading drivers ?).

-- 
André Majorel [EMAIL PROTECTED]
http://www.teaser.fr/~amajorel/



Re: wget tries to print the file prn.html

2002-09-20 Thread Thomas Lussnig


 I just started using wget today, and I am very impressed with it. 
 Apart from the first job I tried, everything has worked perfectly for 
 a number of jobs, even changing to relative URLs, which I thought was 
 very impressive. Thanks for the good work.
  
 I am using wget 1.82 on Win2K SP2, and wget froze on the fifth 
 downloaded file 'prn.html' using the command line:
  
 wget -r -l0 -A htm,html,png,gif,jpg,jpeg --no-parent 
 http://java.sun.com/products/jlf/at/book
  
 About twenty seconds after it stops, I get Windows complaining that 
 there is no available printer (I don't have one), and canceling the 
 job does not cause wget to resume processing.

Hi,
this is an Windows spezific problem.  Normaly should prn.html an valid 
Filename.
And as you can check Long filenames can contain :. But there is an 
List on reserved
words that where interepreted as spezial devices. Since wget work on a 
ton of systems
it could maybe very troublesome to find you each reserved filename. 
Since you could exclude
filenames spezialy i think it is not that problem.

Example's
- Windows
NULL:
PRN:
- Linux
(Normaly,Many)
/dev/*
/proc/*

Cu Thomas Lußnig

p.s. Shure it's prn.html and not prn:html ?



msg04307/pgp0.pgp
Description: PGP signature


Re: wget tries to print the file prn.html

2002-09-20 Thread Max Bowsher

Thomas Lussnig wrote:
 this is an Windows spezific problem.  Normaly should prn.html an valid
 Filename.
 And as you can check Long filenames can contain :.

No they can't. And, on NTFS including a : in a filename causes the data to be
written into an invisible named stream.

 But there is an
 List on reserved
 words that where interepreted as spezial devices. Since wget work on a
 ton of systems
 it could maybe very troublesome to find you each reserved filename.
 Since you could exclude
 filenames spezialy i think it is not that problem.

 Example's
 - Windows
 NULL:
 PRN:
 - Linux
 (Normaly,Many)
 /dev/*
 /proc/*

 Cu Thomas Lußnig

 p.s. Shure it's prn.html and not prn:html ?

prn.html will cause the problem.

Max.




wget tries to print the file prn.html

2002-09-19 Thread Dominic Chambers



Hi there,

I just started using wget today, and I am very 
impressed with it. Apart from the first job I tried, everything has worked 
perfectly for a number of jobs, even changing to relative URLs, which I thought 
was very impressive. Thanks for the good work.

I am using wget 1.82 on Win2K SP2, and wget froze 
on the fifth downloaded file 'prn.html' using the command line:

wget -r -l0 -A htm,html,png,gif,jpg,jpeg 
--no-parent http://java.sun.com/products/jlf/at/book

About twenty seconds after it stops, I get Windows 
complaining that there is no available printer (I don't have one), and canceling 
the job does not cause wget to resume processing.

Thanks again, Dominic.


smime.p7s
Description: application/pkcs7-signature