Re: How to preserve file (rights+date) with wget

2006-12-08 Thread Jochen Roderburg
Zitat von Jean-Philippe BATTU <[EMAIL PROTECTED]>:

> Thanks for your reply but when I use
>
> wget http://myserver.com/myfile.jpg
> and
> wget -N http://myserver.com/myfile.jpg
> wget --timestamping http://myserver.com/myfile.jpg
>
> and i get the same result and the current date !
>

Sorry, I had given you a false advice. This timestamping option -N is only
neccessary for additional features with timestamping. I have it always on,
therefore I had totally forgotten that the basic feature you asked for is
already the default and you need no special parameter for it.

This feature uses the HHTP-Header-Line "Last-Modified:" from the server. Most
servers send this these days, but there are a few which don't (it it not
mandatory).
You can get more information from wget for such problematic cases and see
these internals when you run it with debug-option -d

Best regards,
J.Roderburg



Re: How to preserve file (rights+date) with wget

2006-12-08 Thread Jean-Philippe BATTU

Hi Jochen

Thanks for your reply but when I use

wget http://myserver.com/myfile.jpg
and
wget -N http://myserver.com/myfile.jpg
wget --timestamping http://myserver.com/myfile.jpg

and i get the same result and the current date !

I use GNU Wget 1.10.2 (Red Hat modified)

Is there any problems or am I wrong ?

thanks for your help

Cheers



Selon Jochen Roderburg <[EMAIL PROTECTED]>:

> Jean-Philippe BATTU schrieb:
>
> > I use wget to download file from an HTTP server.
> > I notice the file downloaded is created with the current date once the
> tranfert
> > has been done
> > I didn't find any option to keep the date of the original file.
> > Is there any ways to preserve the original date of the file, like tar(1) do
> as
> > default and scp(1) -p do
>
> "timestamping"  is the magic phrase to look for ;-)
>
> Best regards,
>
> Jochen Roderburg
> ZAIK/RRZK
> University of Cologne
> Robert-Koch-Str. 10 Tel.:   +49-221/478-7024
> D-50931 Koeln   E-Mail: [EMAIL PROTECTED]
> Germany
>


Jean-Philippe BATTU
Grenoble
FRANCE
Site Web: http://www.geocities.com/jeanpba
http://jeanpba.homeip.net


Re: How to preserve file (rights+date) with wget

2006-12-08 Thread Jochen Roderburg

Jean-Philippe BATTU schrieb:


I use wget to download file from an HTTP server.
I notice the file downloaded is created with the current date once the tranfert
has been done
I didn't find any option to keep the date of the original file.
Is there any ways to preserve the original date of the file, like tar(1) do as
default and scp(1) -p do


"timestamping"  is the magic phrase to look for ;-)

Best regards,

Jochen Roderburg
ZAIK/RRZK
University of Cologne
Robert-Koch-Str. 10 Tel.:   +49-221/478-7024
D-50931 Koeln   E-Mail: [EMAIL PROTECTED]
Germany


How to preserve file (rights+date) with wget

2006-12-08 Thread Jean-Philippe BATTU

Hello

I use wget to download file from an HTTP server.
I notice the file downloaded is created with the current date once the tranfert
has been done
I didn't find any option to keep the date of the original file.
Is there any ways to preserve the original date of the file, like tar(1) do as
default and scp(1) -p do
Thanks for your reply
Cheers


Jean-Philippe BATTU
Grenoble
FRANCE
Site Web: http://www.geocities.com/jeanpba
http://jeanpba.homeip.net