Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Das "ich bin mal ne Woche weg"-Tool
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
das_leid
n00b
n00b


Joined: 11 Apr 2004
Posts: 63
Location: Bochum / Germany

PostPosted: Sun Jul 10, 2005 12:43 pm    Post subject: Das "ich bin mal ne Woche weg"-Tool Reply with quote

Hallo,

ich bin demnaechst mal wieder für ein paar Tage unterwegs und wollte die Zeit nutzen um ein

emerge -e world

auf meinem PC zuhause zu machen. Leider passiert es immer mal wieder, dass dabei ein Paket nicht kompiliert werden will und er den gesamten Vorgang abbricht. Sehr lästig. Hat hier einer vielleicht ein Script mit dem man das automatisieren kann ?

Wunschliste :

1. Einfach bis zum Ende durchkompilieren. Bei Fehler mit dem naechsten Paket weitermachen..
2. Pakete die nicht kompiliert wurden in eine Logdatei schreiben

Ich kenne natuerlich die optionen "-skipfirst" und "-resume". Aber irgendwie fehlt noch das Script, das das Ganze logisch kombiniert. :-)


Grüße
Das_Leid
_________________
emerge vim

OH EVIL !
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sun Jul 10, 2005 12:58 pm    Post subject: Reply with quote

Prinzipiell würde sowas wie
Code:
emerge -e world; while [ ! $? -eq 0 ]; do emerge --resume --skipfirst; done
gehen. Empfehlen würde ich so ein unbeaufsichtigtes emerge trotzdem nicht.
_________________
KDE
Back to top
View user's profile Send private message
das_leid
n00b
n00b


Joined: 11 Apr 2004
Posts: 63
Location: Bochum / Germany

PostPosted: Sun Jul 10, 2005 1:28 pm    Post subject: okay - funzt wahrscheinlich.. Reply with quote

eine Logfunktion fehlt noch.. Aber das bekomm ich vielleicht auch selber hin.

Merci

Das_Leid
_________________
emerge vim

OH EVIL !
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Sun Jul 10, 2005 2:18 pm    Post subject: Reply with quote

Hier haste was mit Logging (habs noch nicht probiert, sollte aber gehen):
Code:
for I in `cat /var/lib/portage/world`; do
        emerge -e $I || echo "Emerge fehler bei $I" >> /root/emerge.log
done

_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
moe
Veteran
Veteran


Joined: 28 Mar 2003
Posts: 1289
Location: Potsdam / Germany

PostPosted: Sun Jul 10, 2005 3:59 pm    Post subject: Reply with quote

Ist zwar ein etwas anderes Konzept, aber guck dir mal gentoo linux cron update an..

HTH Maurice
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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