Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Previous Instances

by beretboy (Chaplain)
on Mar 04, 2003 at 00:00 UTC ( #240198=perlquestion: print w/replies, xml ) Need Help??

beretboy has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know of a way to detect if there are any previous instances of a perl program running, on Windows?

"Sanity is the playground of the unimaginative" -Unknown

Replies are listed 'Best First'.
Re: Previous Instances
by caedes (Pilgrim) on Mar 04, 2003 at 00:03 UTC
Re: Previous Instances
by Cabrion (Friar) on Mar 04, 2003 at 04:24 UTC
    If you don't care about portability, Windows programs typically use semaphores to detect that. There is a perl module that provides access to semaphores. This won't work on other platforms. It looks like the newer Perl's provide semaphores in a multi-threaded build, but I don't know how pervasive they are.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://240198]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2022-01-17 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (50 votes). Check out past polls.

    Notices?