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.

  • Comment on Re: Locking out a CGI script whilst it runs