ProcessID in *nix
Fairlight
fairlite at fairlite.com
Wed Jun 23 09:21:28 PDT 2004
Confusious (Jay Ashworth) say:
> 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?
perl -e 'print(getppid(),"\n");'
m->
--
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