ProcessID in *nix
Jay R. Ashworth
jra at baylink.com
Wed Jun 23 09:19:47 PDT 2004
On Wed, Jun 23, 2004 at 12:14:20PM -0400, Fairlight wrote:
> 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;
Isn't there a way to do that as a one-liner on the command line? perl
-e or something?
Cheers,
-- jra
--
Jay R. Ashworth jra at baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274
2004 Stanley Cup Champion Tampa Bay Lightning
More information about the Filepro-list
mailing list