Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Locking out a CGI script whilst it runs

by Ryszard (Priest)
on Feb 18, 2003 at 20:27 UTC ( [id://236381]=note: print w/replies, xml ) Need Help??


in reply to Locking out a CGI script whilst it runs

Use a lock file. If the file exists, then dont run.. the file can be empty, or it could contain the PID of the process.

Make sure if have a "die" handler that will remove the lock file if your script dies unexpectedly.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-03-28 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found