Aaron> Would it suffice to call 'os.open' with flags= _O_CREAT| _O_EXCL
Aaron> ? Would that be platform-independent?
I suspect it would be platform-independent but not NFS-safe. (The other
solutions in lockfile might have NFS problems as well. In any case,
lockfile provides a bit more
On Sep 13, 5:34 pm, [EMAIL PROTECTED] wrote:
> >> I don't want to handle writing of a PID file because it is too
> >> Unix/Linux specific way to do this, and I need to keep the code to be
> >> cross-platform.
> >>
> >> I think the better way to achieve this is to use some proces
>> I don't want to handle writing of a PID file because it is too
>> Unix/Linux specific way to do this, and I need to keep the code to be
>> cross-platform.
>>
>> I think the better way to achieve this is to use some process
>> control, but I'm a neebie and I don't see ho
On Sep 12, 7:08 am, Strato <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I want to write some kind of test to check at startup if another
> instance of my script is already running.
>
> I don't want to handle writing of a PID file because it is too
> Unix/Linux specific way to do this, and I need to k
Strato wrote:
Hi folks,
I want to write some kind of test to check at startup if another
instance of my script is already running.
I don't want to handle writing of a PID file because it is too
Unix/Linux specific way to do this, and I need to keep the code to be
cross-platform.
I think t
Strato wrote:
Hi folks,
I want to write some kind of test to check at startup if another
instance of my script is already running.
I don't want to handle writing of a PID file because it is too
Unix/Linux specific way to do this, and I need to keep the code to be
cross-platform.
I think t
Tim Golden wrote:
Strato wrote:
Hi folks,
I want to write some kind of test to check at startup if another
instance of my script is already running.
I don't want to handle writing of a PID file because it is too
Unix/Linux specific way to do this, and I need to keep the code to be
cross-pl
Strato wrote:
Hi folks,
I want to write some kind of test to check at startup if another
instance of my script is already running.
I don't want to handle writing of a PID file because it is too
Unix/Linux specific way to do this, and I need to keep the code to be
cross-platform.
I think t
Hi folks,
I want to write some kind of test to check at startup if another
instance of my script is already running.
I don't want to handle writing of a PID file because it is too
Unix/Linux specific way to do this, and I need to keep the code to be
cross-platform.
I think the better way t