G
googlegroups.zaphod
How would you check the status of a process if you have it's id?
for instance; my web host's eMail server uses a lock file "inbox.lock"
which containes the process id of the process that created the
lockfile, to lock access to the inbox file.
If I want to write a script that processes the eMails in the inbox
file.
I check for the existance of the lock file.
If the lock file does not exist, create it and insert my process id.
if the lock file does exist, read the process id out of the lock file
and check to see if the lock is stale (the creating process died
without deleting the file)
How do I chack to see if the process is still running?
Zaphod
for instance; my web host's eMail server uses a lock file "inbox.lock"
which containes the process id of the process that created the
lockfile, to lock access to the inbox file.
If I want to write a script that processes the eMails in the inbox
file.
I check for the existance of the lock file.
If the lock file does not exist, create it and insert my process id.
if the lock file does exist, read the process id out of the lock file
and check to see if the lock is stale (the creating process died
without deleting the file)
How do I chack to see if the process is still running?
Zaphod