Don't ask to ask, just ask | |
PerlMonks |
Re: Locking out a CGI script whilst it runsby Ryszard (Priest) |
on Feb 18, 2003 at 20:27 UTC ( [id://236381]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|