================== SAMPLE CODE =============================== [EMAIL PROTECTED]:~/Essais$ rm /tmp/essais.txt essais.txt [EMAIL PROTECTED]:~/Essais$ wget -N -O /tmp/essais.txt http://custom/essais.txt --17:49:42-- http://custom/essais.txt => `/tmp/essais.txt' Resolving custom... 172.16.0.42 Connecting to custom[172.16.0.42]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 59 [text/plain]
17:49:43 (576.17 KB/s) - `/tmp/essais.txt' saved [59/59] [EMAIL PROTECTED]:~/Essais$ ls -l /tmp/essais.txt -rw-r--r-- 1 tth users 59 2005-09-30 16:44 /tmp/essais.txt [EMAIL PROTECTED]:~/Essais$ cp /tmp/essais.txt . [EMAIL PROTECTED]:~/Essais$ rm /tmp/essais.txt [EMAIL PROTECTED]:~/Essais$ wget -N -O /tmp/essais.txt http://custom/essais.txt --17:49:43-- http://custom/essais.txt => `/tmp/essais.txt' Resolving custom... 172.16.0.42 Connecting to custom[172.16.0.42]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 59 [text/plain] Server file no newer than local file `essais.txt' -- not retrieving. [EMAIL PROTECTED]:~/Essais$ ls -l /tmp/essais.txt -rw-r--r-- 1 tth users 0 2005-09-30 17:49 /tmp/essais.txt [EMAIL PROTECTED]:~/Essais$ uname -a ; wget -V Linux pouffre 2.4.26 #6 Mon Jun 14 19:07:27 PDT 2004 i586 unknown unknown GNU/Linux GNU Wget 1.9.1 =============================================================== I think that wget look for the typestamp of the file in the current directory, ignoring the -O option. -- Thierry Boudet 06 85 49 60 67 http://tboudet.free.fr/cv.html