me wrote: > #!/bin/bash > > prog1 & > prog2 & > > while [ $(ps -A | grep -E 'prog1|prog2') == "0" ] > do > sleep 5 > done > > prog3 > > > more or less like that >
You know, I actually started out with something similar. But it has limitations. Let's say you want to launch two sets of (proga, progb, progc). Then the ps + grep logic will grep for proga, progb from both the sets. That is why I shifted to writing a file at the end. In any case, thanks for the reply. raju -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org