Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
über nacht emerge
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
Lazare
n00b
n00b


Joined: 16 Aug 2003
Posts: 11
Location: Linz - Austria

PostPosted: Mon May 10, 2004 12:47 pm    Post subject: über nacht emerge Reply with quote

ich möchte gerne über nacht div. Pakete emergen, allerdings habe ich oft das Problem dass ein Paket nicht kompiliert wird und mit einer Fehlermeldung abbricht und somit der ganze emerge Prozess abgebrochen wird und kein weiteres paket compiliert wird.
Bisher sah meine Basheingabe immer folgendermaßen aus:

emerge xyz && emerge xyx && emerge xyy ......

Gibts eine Möglichkeit nach einem Fehler trotzdem das nächste Paket zu compilieren?
Back to top
View user's profile Send private message
lostSoul
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 125
Location: /earth/germany/bielefeld

PostPosted: Mon May 10, 2004 12:56 pm    Post subject: Reply with quote

emerge foo; emerge foo2; emerge foo3
Back to top
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1494
Location: Frankfurt/Main

PostPosted: Mon May 10, 2004 12:56 pm    Post subject: Reply with quote

Einfach Linux Kenntnisse ;)

emerge xyz; emerge xzy; emerge aba; ....

Statt && einfach den ; nehmen!
Back to top
View user's profile Send private message
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 905
Location: Hamburg, Germany

PostPosted: Mon May 10, 2004 5:54 pm    Post subject: Reply with quote

Aber so siehst Du nicht welche Pakete erfolgreich waren und welche nicht. Ich bin kein Shell Guru, aber wie wäre es mit einem Skript ala
Code:
#/bin/bash
for i in $* ; do
  emerge $i >$i.log
done

Das als emerge_each abspeichern und mit
Code:
$ chmod +x emerge_each

ausführbar machen.

Der Aufuf wäre dann
Code:
$ emerge_each paketname1 paketname2 paketname3 ...


Dann kannst Du am nächsten morgen in den .log files nachgucken ob auch alles geklappt hat. Ich habe das alleredings nicht ausprobiert, kann sein, das emerge auch noch was auf stderr ausgibt, dann müsste noch ein "2>" mit ins Skript. Alles ohne Gewähr...

Frank
Back to top
View user's profile Send private message
Lorneagle
n00b
n00b


Joined: 10 May 2004
Posts: 25
Location: Furtwangen

PostPosted: Mon May 10, 2004 6:41 pm    Post subject: Reply with quote

Er kann auch einfach am nächsten Morgen im /var/log/emerge.log nachschaun welcher Prozess erfolgreich war und welchr nicht. :wink:
_________________
System:
AMD Barton 2500+
Abit NF7 V2.0 nforce2
BIOS Version:2.4
512 MB DDR-333 RAM
vanilla-kernel 2.6.11

CFLAGS are:
Code:
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=sse,387"
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2935
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon May 10, 2004 6:44 pm    Post subject: Reply with quote

emerge foo|| emerge foo2|| emerge foo3
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Lazare
n00b
n00b


Joined: 16 Aug 2003
Posts: 11
Location: Linz - Austria

PostPosted: Tue May 11, 2004 6:12 am    Post subject: Reply with quote

@furanko:
mit "nohup ./emerging &" schreibt er auch ein Logfile, obwohl das in diesem Fall sowieso unsinnig ist
Back to top
View user's profile Send private message
zouk
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2004
Posts: 114

PostPosted: Tue May 11, 2004 7:00 am    Post subject: Reply with quote

pablo_supertux wrote:
emerge foo|| emerge foo2|| emerge foo3
Das würde bei Erfolg nur 'foo' emergen. Der boolsche Ausdruck ist damit immer true und es wird abgebrochen.

gruß
zouk
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2935
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue May 11, 2004 8:10 am    Post subject: Reply with quote

ach ja, stimmt, daran habe ich nicht gedacht :)
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 905
Location: Hamburg, Germany

PostPosted: Tue May 11, 2004 8:45 am    Post subject: Reply with quote

Lazare wrote:
@furanko:
mit "nohup ./emerging &" schreibt er auch ein Logfile, obwohl das in diesem Fall sowieso unsinnig ist


Stimmt, nohup hat zudem den Vorteil, dass man sich während des emerges ausloggen kann. Ich hatte auch schon mal über sowas nachgedacht, aber ich dachte eher daran eine Liste von Paketnamen via shellscript in einem cron oder at job abzuarbeiten, und mir kurze Erfolgs- oder Fehlermeldungen per email zuzuschicken, so dass ich auch von der Arbeit aus via ssh kleine Fehler korrigieren kann.

Da hätte die Ausgabe Umleitung in einzelne Files den Vorteil, dass man dass einfach mit "tail $i.log | mail -s "Emerge Log" email@adresse" sofort Bescheid bekommt, was geklappt/nicht geklappt hat.

Aber irgenwie fand ich es dann doch übertrieben, dass mein Computer mir "hinterhertelefoniert" ;)

Frank
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