On Mon, 2004-10-18 at 11:06 +1000, Michael Kraus wrote: > G'day... > > Whilst this discussion is pretty great - I would like to note that the > practical purpose of knowing the size of a PID is so that I can store > the current processes' PID in an MySQL database, and the process is a > Perl script.
The key element is why do you need the pid? There is usually only two good reasons to know a process's pid: 1) to kill it 2) to tell it to cleanly shutdown. And then you still need to check its the same command line you thought it was. Do you want the pid for one of those reasons, or another?... Is it so that you know what the current processs? (so what happens when it dies and is replaced, with the same pid, with another process - perhaps even the same script again). Is it for auditing? What happens if the perl script runs twice at once ? Rob -- GPG key available at: <http://www.robertcollins.net/keys.txt>.
signature.asc
Description: This is a digitally signed message part
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
