How can I wrap an executable on UNIX (SunOS) so that it is never run more than once at the same time

Posted by user332815 on Stack Overflow See other posts from Stack Overflow or by user332815
Published on 2010-05-04T21:05:34Z Indexed on 2010/05/04 21:08 UTC
Read the original article Hit count: 158

Filed under:
|
|
|

I have an executable (no source) that I need to wrap, to make sure that it is not called more than once at a time. I immediately think of some sort of queue wrapper, but how do I actually make it so that my wrapper is called instead of the executable itself? Is there a better way to do this? The solution needs to be invisible because the users are other applications. Any information/recommendations are appreciated.

© Stack Overflow or respective owner

Related posts about unix

Related posts about sunos