05.03.2014 Views

Chapitre 1 - IPNL - IN2P3

Chapitre 1 - IPNL - IN2P3

Chapitre 1 - IPNL - IN2P3

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

wget est un logiciel qui permet de télécharger des fichiers de façon non interactive en http,<br />

https, et ftp. Cette commande peut être utile dans des scripts.<br />

________________________________________________________________<br />

exemple 1: téléchargement d’un fichier sur un serveur ftp<br />

[ipn@lyopc325 ipn]$<br />

[ipn@lyopc325 ipn]$ wget ftp://rpmfind.net/redhat/9/i386/RPMS/lynx-2.8.5-11.i386.rpm<br />

--17:39:08-- ftp://rpmfind.net/redhat/9/i386/RedHat/lynx-2.8.5-11.i386.rpm<br />

=> `lynx-2.8.5-11.i386.rpm'<br />

Resolution de rpmfind.net... complete.<br />

Connexion vers rpmfind.net[195.220.108.108]:21...connecte.<br />

Session debutant sous anonymous...Session etablie!<br />

==> SYST ... complete. ==> PWD ... complete.<br />

==> TYPE I ... complete. ==> CWD //redhat/9/i386/RPMS ... complete.<br />

==> PORT ... complete. ==> RETR lynx-2.8.5-11.i386.rpm ... complete.<br />

Longueur: 1,522,835 (non autorisee)<br />

100%[============================================================================>]<br />

1,522,835 4.00M/s ETA 00:00<br />

17:39:08 (4.00 MB/s) - « lynx-2.8.5-11.i386.rpm » sauvegardee [1522835]<br />

[ipn@lyopc325 ipn]$<br />

exemple 2: téléchargement d’un fichier sur un serveur http<br />

[ipn@lyopc325 ipn]$<br />

[ipn@lyopc325 ipn]$ wget<br />

http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe<br />

--17:47:06-- http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe<br />

=> `putty.exe'<br />

Resolution de the.earth.li... complete.<br />

Connexion vers the.earth.li[193.201.200.66]:80...connecte.<br />

requete HTTP transmise, en attente de la reponse...302 Found<br />

Location: http://the.earth.li/~sgtatham/putty/0.54/x86/putty.exe [suivant]<br />

--17:47:11-- http://the.earth.li/%7Esgtatham/putty/0.54/x86/putty.exe<br />

=> `putty.exe'<br />

Connexion vers the.earth.li[193.201.200.66]:80...connecte<br />

requete HTTP transmise, en attente de la reponse...200 OK<br />

Longueur: 372,736 [application/x-msdos-program]<br />

100%<br />

[============================================================================>]<br />

372,736 1.70M/s ETA 00:00<br />

17:47:12 (1.70 MB/s) - « putty.exe » sauvegarde [372736/372736]<br />

[ipn@lyopc325 ipn]$<br />

[ipn@lyopc325 ipn]$<br />

[ipn@lyopc325 ipn]$ ll<br />

total 1916<br />

-rwxr-xr-x 1 ipn ipn 8710 nov 9 2001 acroread<br />

-rw-r--r-- 1 ipn ipn 44032 avr 16 20:49 commandes.doc<br />

-rw-rw-r-- 1 ipn ipn 1522835 avr 20 17:39 lynx-2.8.5-11.i386.rpm<br />

-rw-rw-r-- 1 ipn ipn 372736 fev 12 20:21 putty.exe<br />

[ipn@lyopc325 ipn]$<br />

________________________________________________________________<br />

Points à retenir

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!