in reply to Re^4: how can a perl script determine it's own PID while running
in thread how can a perl script determine it's own PID while running

That's why you don't just check for the file. If the file exists, you read the process's pid from the file and then check for the process.
  • Comment on Re^5: how can a perl script determine it's own PID while running