I have three programs - say proga, progb, progc. proga, progb are completely independent. They take couple of hours to finish. The time to complete proga, progb are not same.
progc should to be launched only after both proga, progb are finished. progc takes another couple of hours to finish. What is good way to automate this problem (that is no manual interaction)? I prefer to use nohup since sometimes I have to log out of the machine before the whole process finishes. Currently I have a shell script that works as below. 1) launch proga, progb in the background using nohup. 2) Ask proga, progb to write a file when they finish. 3) Every five minutes check if these files are present. If they are present, launch progc. This gets me going for now. But it looks terribly inefficient. I would appreciate if someone can provide a better solution. Using Debian Lenny (Stable). thanks 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