[ubuntu-it] wget [Opzioni]

project aurora051 projectaurora051 a gmail.com
Mer 3 Set 2008 10:51:31 BST


Il giorno mar, 02/09/2008 alle 21.19 +0200, Rocco ha scritto:
> Il giorno mar, 02/09/2008 alle 21.10 +0200, spillo_89 ha scritto:
> > ciao, le pagine di man dicono tutto :)
> > 
> > man comando
> > 
> > saluti
> > simone
> > 
> > > Cordiali saluti.
> > > 
> > > Sono nuovo nel mondo Linux e mi piacerebbe sapere cosa significa " -O -"
> > > e anche il trattino dopo add"-" nel seguente comando:
> > > 
> > > Install GPG Key
> > > 
> > > $ wget http://gpl.code.de/DB898410.key.pub.asc -O - | sudo apt-key add -
> > > 
> > > Vi ringrazio a tutti in anticipo!
> > > 
> > 
> > 
> 
> interesserebbe anche a me :|
> solo che io ho fatto man wget ma niente sulle opzioni °_° 
> 
> 

Prendo dal man di wget:
Citazione

-O file
     --output-document=file
           The documents will not be written to the appropriate
files, but all will be concatenated together and written to
           file.  If - is used as file, documents will be printed to
standard output, disabling link conversion.  (Use ./-
           to print to a file literally named -.)

           Use of -O is not intended to mean simply "use the name file
instead of the one in the URL;" rather, it is
           analogous to shell redirection: wget -O file http://foo is
intended to work like wget -O - http://foo > file;
           file will be truncated immediately, and all downloaded
content will be written there.


quindi sostanzialmente si chiede a wget di scrivere l'output del comando
in un file chiamato "-", che poi viene passato con una pipe ("|") al
comando apt-key add -, che dice ad apt-key di aggiungere il file
contenente una chiave gpg chiamato -

Questo e quanto mi è stato riferito da altri utenti della chat
"gentilissimi".

--
Saluti, Umberto







Maggiori informazioni sulla lista ubuntu-it