Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How can i check my script is already running?

by hossman (Prior)
on May 12, 2010 at 01:21 UTC ( #839522=note: print w/replies, xml ) Need Help??


in reply to How can i check my script is already running?

Hands down, bar none, i have never found a more straightforward error proof solution to this problem then to attempt to bind to a specific socket...

Re: Lightweight Solution To "Only 1 Process Running" On AIX

  • Comment on Re: How can i check my script is already running?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://839522]
help
Chatterbox?
[Corion]: Nicholas Clark++ # read for a multichar block-delimiter by scanning for the last char, and only then check whether the whole delimiter was read.
[Corion]: At least if you're appending the data read to a larger buffer, this means you avoid the situation of "a delimiter was found but the other half has not been read yet"
choroba misses the context

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2016-12-06 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (107 votes). Check out past polls.