-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In attesa di uscire come ingannare il tempo? Beh sta sera mi sono scritto una patch per wget: la patch del masochista. Praticamente fa si che tutti i file scaricati vengano immediatamente cancellati. Particolarmente indicato per chi sta scaricando una distribuzione ed è a pochi MB dalla fine. Per utilizzarla scaricarsi wget-1.8.1 e seguire le indicazioni: simon@jkcal:~/tmp$ ls wget-1.8.1.* wget-1.8.1.patch wget-1.8.1.tar.gz simon@jkcal:~/tmp$ tar -xzf wget-1.8.1.tar.gz simon@jkcal:~/tmp$ cd wget-1.8.1 simon@jkcal:~/tmp/wget-1.8.1$ patch -p1 < ../wget-1.8.1.patch patching file src/main.c ok? poi le solite cose: ./configure make make install Buon divertimento. La patch è in allegato. - -- /* Federico 's1m0n' Simoncelli <f.simon@xxxxxxxx> http://www.jkcal.org/simon */ int main(){unsigned int g,h=0;while(++h){for(g=(h>1)?2:1;g< h/2+1&&h%g!=0;g++);if(g==h/2+1)printf("%i\n",h);}return 0;} -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8mjuo/ItriIBKan0RAunhAKDkforrFiE+rrgUHLI2huxkFaTOhwCgvWIc ohXkWXwSKbx7SNaEOdWggq8= =2KRG -----END PGP SIGNATURE-----
diff -Naur wget-1.8.1/src/main.c wget-patched/src/main.c --- wget-1.8.1/src/main.c Mon Dec 10 06:31:44 2001 +++ wget-patched/src/main.c Thu Mar 21 20:42:18 2002 @@ -821,6 +821,9 @@ logprintf (LOG_NOTQUIET, "unlink: %s\n", strerror (errno)); } + printf("\nVersione masochista, sto cancellando il file scaricato: %s\n", filename); + unlink(filename); + FREE_MAYBE (redirected_URL); FREE_MAYBE (filename); }