in reply to
Re: Working With The Process Table (AIX)
in thread Working With The Process Table (AIX)
Maybe I can do what another way?
As I indicated in my original post, I am writing a general purpose library for interacting with the process table. Perhaps you assumed I am trying to make sure there is only one instance of a process running? Even if that is what I was attempting to do (it isn't), using locks on a file have their own limitations. For instance, on most *nix platforms the lock is advisory and not enforced by the kernel. Additionally, you can delete a locked file.
Again, I need to be able to answer the questions:
- Is this specific script at this absolute path currently running?
- Is there a process in the process table with X in the command line arguments?