Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Scriptino per info sul pacchetto in emersione
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
gamberetto
Apprentice
Apprentice


Joined: 29 Mar 2005
Posts: 210
Location: Camisano Vicentino (VI)

PostPosted: Sun Jul 17, 2005 9:59 pm    Post subject: Scriptino per info sul pacchetto in emersione Reply with quote

Ciao a tutti,
ho fatto uno scriptino in bash che estrae alcune informazioni sull'emerge in corso:
- nome pacchetto
- dimensioni del download
- spazio occupato per la compilazione
- numero del pacchetto rispetto al totale della lista dei pacchetti da emergere

Il script è qui ---> emstat
non è proprio il massimo, soprattutto come prestazioni:
- usa "emerge -s" che a volte è un po' lento
- usa "du" su /var/tm/portage/nome_pacchetto, e se non si usa tmpfs per compilare può diventare lentissimo e cicciare via risorse!
- non sapevo come far laggere ad un utente normale il log di emerge e coì bisogna eseguirlo da root
- non l'ho testato molto

Per velocizzare "emerge -s" ho fatto una cache :)

Più che utile l'ho trovato interessante da scrivere; i commenti di qualsiasi genere sono i benvenuti! :wink:
Ciao
_________________
Andre!
http://www.antimafiaduemila.com
Back to top
View user's profile Send private message
gaffiere
Guru
Guru


Joined: 13 Nov 2003
Posts: 406
Location: Provincia Milano

PostPosted: Sun Jul 17, 2005 10:29 pm    Post subject: Reply with quote

da una prima e veloce lettura, ti stavo per proporre di usare eix -s al posto di emerge -s: peccato che il primo non riporti la dimensione del pacchetto... ops :roll:

potresti provare a integrare anche le info che restituisce genlop

happy hacking :)
see ya
_________________
Thomaz "Gaffiere"
Middle-Earth XP2200+, 1Gb Ram, 80Gb + 160Gb Hd, SbLive!, Nvidia 6800GT AGP8x
Gentoo Gnu/Linux 2.6.12-gentoo-r10
Back to top
View user's profile Send private message
gamberetto
Apprentice
Apprentice


Joined: 29 Mar 2005
Posts: 210
Location: Camisano Vicentino (VI)

PostPosted: Mon Jul 18, 2005 1:04 pm    Post subject: Reply with quote

Ho fatto alcuni cambiamenti. Qui c'è il changelog
Ora usa i files digest per calcolare la dimensione del download (più veloce) e usa genlop (grazie gaffiere!!!) per restituire il tempo rimanente di compilazione.
Ho tolto l'opzione --stat e ho aggiunto --all
ciao :wink:
_________________
Andre!
http://www.antimafiaduemila.com
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