Doug writes:
> While you may think its terribly inefficient, it isn't really.  A fancy
> "wait" function is just polling anyway, you're just making it overt.  You
> also have the ability to have proga and progb only touch the file if they
> complete successfully.

Have each of them check for a completion file when they complete
successfully.  If it exists remove it and start progc.  If not create a
completion file and exit (there is a possible race condition here).

Both should be started from the same script, of course, which should handle
the completion file, errors and cleanup.  No need to modify the programs.
-- 
John Hasler


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to