Command line semaphore utility

Posted by compie on Stack Overflow See other posts from Stack Overflow or by compie
Published on 2010-04-28T21:17:36Z Indexed on 2010/04/28 21:37 UTC
Read the original article Hit count: 363

I want to write a command line utility that can be used to synchronize the execution off programs in different consoles.

Console A: 
$ first_program && semaphore -signal

Console B:
$ semaphore -wait && second_program

The first program takes a long take to complete. The second program can only start when the first program has finished.

Which synchronization object do I need to implement this (in Python)?

© Stack Overflow or respective owner

Related posts about python

Related posts about command-line