Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[INFO] url stripping da shell [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Mistobaan
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 76

PostPosted: Thu Jul 29, 2004 3:26 pm    Post subject: [INFO] url stripping da shell [RISOLTO] Reply with quote

Ciao ragazzi!

Nella mia eterna lotta per avere una gentoo a casa e una connessione valida ad un ora di viaggio voglio chiedere questo:

Esiste un tool da linea di comando che mi permetta, dato un file di tirare fuori tutti i link dell file stesso ? :roll:

Grassie

Soluzione
Quote:

Vedere link http://www.netalive.org/codersguild/posts/1237.shtml

_________________
God is real until declared integer


Last edited by Mistobaan on Thu Jul 29, 2004 4:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31470
Location: here

PostPosted: Thu Jul 29, 2004 3:27 pm    Post subject: Reply with quote

Che vorresti fare esattamente?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
adarkar
n00b
n00b


Joined: 26 Jul 2004
Posts: 59
Location: Cremona, IT

PostPosted: Thu Jul 29, 2004 3:28 pm    Post subject: Reply with quote

se il file è un html, prova con
Code:
grep '<a.*>'

potrebbe andare? :)
_________________
@_=(115,-17,6);print+map{chr$_[$.=$_-$_]*$_**$.+++$_[$.]*$_**$.+++$_[$.]*$_**$.}$.-$...$#_
Back to top
View user's profile Send private message
Mistobaan
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 76

PostPosted: Thu Jul 29, 2004 3:33 pm    Post subject: Reply with quote

ho appena fatto uno script che preso una lista di mirror
mette i link relativi ad uno stesso file in una lista e la da in pasto a
axel.

Con questo ho scaricato emerge -f system in 6 minuti.

ora il fatto che non posso farmi un ora di viaggio ogni volta che voglio un emerge ho pensato di crearmi una lista con tutti i mirror elencati in gentoo mirrors in modo da aggiornare direttamente la cartella distfiles.

Faccio questo perchè posso scaricare solo in http e ftp. ( niente rsync.. )

Una specie di rsync manuale via http...

Quindi mi serve un tool che mi strippa dalla pagina html tutti i nomi dei file
contenuti in ${nomeserver-mirror}/distfiles/
poi li metto in un file e me li scarico con axel. :roll:

Esiste qualcosa di più pratico ?
_________________
God is real until declared integer
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31470
Location: here

PostPosted: Thu Jul 29, 2004 3:35 pm    Post subject: Reply with quote

Leggi questa e penso che trovi quello che cerchi http://www.gentoo.it/doc/gentoo-offline.htm
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Mistobaan
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 76

PostPosted: Thu Jul 29, 2004 3:40 pm    Post subject: Reply with quote

@fedeli ok ok. :lol: l'ho spulciato per benino

Io voglio tenere sincronizzato la directory distfiles dei mirror
con quella mia locale. L'unico modo che mi viene in mente e
avere

Lista dei mirror

Lista dei file dentro distfiles

Code:

per ogni file
 per ogni mirror
    $lista="$lista $mirror/distfile/$file"
axel $lista


In questo modo scarico tutto il contenuto dei distfiles via http o ftp.
Se devo aggiornare mi basta riscaricarmi la directory distfiles..
_________________
God is real until declared integer
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu Jul 29, 2004 4:37 pm    Post subject: Reply with quote

Mistobaan wrote:
In questo modo scarico tutto il contenuto dei distfiles via http o ftp.


Cioé scarichi l'intero mirror?
Trattandosi di una 15a di Gb non mi sembra molto saggio... sia per la tua connessione che per il carico sul mirror
_________________
Ciao da me!
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Thu Jul 29, 2004 8:38 pm    Post subject: Reply with quote

piu che altro non mi sembra un comportamento 'civile' secondo i canoni della rete.
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum