get process id

Bill Vermillion fp at wjv.com
Sun Oct 10 14:51:08 PDT 2004


Shakespeare wrote plays and sonnets that will last an eternity, 
but on Sun, Oct 10 13:48 , Fairlight wrote:" 

> On Sun, Oct 10, 2004 at 11:04:15AM -0400, Kenneth Brody, the prominent pundit,
> witicized:
> > Scott Nelson wrote:
> > > 
> > > Having a brain clog here.
> > > 
> > > SCO OpenServer 5.06, fP 5

> > > I need to get the process id of a filepro program and use
> > > it in a variable while in the program. I know this has been
> > > discussed in the past, but there is a memory leak here....

> > Must it really be the PID of the filePro program, or just a unique
> > number?  (ie: would the PID of a child process called via USER be
> > sufficient?)

> Keeping in mind that the PID itself is not unique unless
> bound to a date and time, since PID-space recycles at around
> 32000-ish on most 32bit operating systems, and even some 64bit
> ones (Solaris 7 and 8 come to mind).

But not on the beast.  Looking at currently running processes
and performing   grep ^8  on a ps -ax yields this:


88166  ??  I      0:00.02 sshd: bv [priv] (sshd)
88170  ??  I      0:00.42 sshd: bv at ttyp0 (sshd)
88206  ??  I      0:00.02 sshd: bv [priv] (sshd)
88209  ??  I      0:01.08 sshd: bv at ttyp1 (sshd)
88171  p0  Is     0:00.02 -ksh (ksh)
88185  p0  I+     0:00.06 -su (ksh)
88210  p1  Is+    0:00.04 -ksh (ksh)

Just FYI.  The inode numbers that are over a million usually take
a second look to get them correct too.

Much of 'beastie' has been 64 bit for a few years now.   

Bill
-- 
Bill Vermillion - bv @ wjv . com


More information about the Filepro-list mailing list