public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user-de] Bash-Skript Frage
@ 2005-08-16 14:16 Volker Katz
  2005-08-16 15:12 ` Emil Beinroth
  2005-08-16 17:14 ` Nils Andresen
  0 siblings, 2 replies; 7+ messages in thread
From: Volker Katz @ 2005-08-16 14:16 UTC (permalink / raw
  To: gentoo-user-de

Moin,
ich habe mal wieder eine kleine Frage zu einem Bash-Skript.

Ich möchte mehrere Programme prallel laufen lassen - soweit ja kein Problem. 
Einfach ein "&" hinter jedes Kommando und gut ist. Nur möchte ich ein 
Kommando erst aufrufen, nachdem alle anderen fertig sind. 

Also in der Art:

/bin/job1 &
/bin/job2 &
/bin/job3 &
while (not job1 finished && not job2 finished && not job3 finished)
/bin/job4

(Natürlich ist mir klar, das aktives Warten nicht schön ist - ich wollte nur 
mein Problem darstellen.)

Wie kann man das elegant machen? Die PIDs merken und in einer Schleife 
kontrollieren? Wie würde soetwas aussehen?

Gruß & Danke
  Volker

-- 
gentoo-user-de@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-20 13:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-16 14:16 [gentoo-user-de] Bash-Skript Frage Volker Katz
2005-08-16 15:12 ` Emil Beinroth
2005-08-16 17:14 ` Nils Andresen
2005-08-20  5:01   ` Karsten Schulz
2005-08-20 10:04   ` [gentoo-user-de] " Thomas Schweikle
2005-08-20 10:39     ` Hendrik Jürgens
2005-08-20 13:16       ` Thomas Schweikle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox