ProcessID in *nix
Bill Campbell
bill at celestial.com
Wed Jun 23 08:10:12 PDT 2004
On Wed, Jun 23, 2004, Walter Vaughan wrote:
>I found a thread in 1999 that addressed this issue, but it related to
>getting the process ID of the parent.
>
>I *think* what I want is the process id number of the currently
>executing *clerk.
>
>Anyone got a snippet of how they got it? Not the shell, but the current
>running *clerk.
There's a POSIX system call, pid_t getppid(void), that returns
the parent's process ID. I'm not sure how one would get that in
processing tables.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
When I hear a man applauded by the mob I always feel a pang of pity
for him. All he has to do to be hissed is to live long enough.
-- H.L. Mencken, ``Minority Report''
More information about the Filepro-list
mailing list