ProcessID in *nix

Fairlight fairlite at fairlite.com
Wed Jun 23 09:14:20 PDT 2004


Confusious (Bill Campbell) say:
> 
> 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.

#!/usr/local/bin/perl
# fpgetppid - to be used with USER
print(getppid(),"\n");
exit;

mark->
-- 
Bring the web-enabling power of OneGate to -your- filePro applications today!

Try the live filePro-based, OneGate-enabled demo at the following URL:
               http://www2.onnik.com/~fairlite/flfssindex.html


More information about the Filepro-list mailing list