ProcessID in *nix

Bob Stockler bob at trebor.iglou.com
Wed Jun 23 09:33:26 PDT 2004


On Wed, Jun 23, 2004 at 09:29:49AM -0400, 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.

Processing table:

  then: declare PID(5,.0)
  then: USER getpid = /usr/local/bin/getppid
  then: PID = getpid
  then: close getpid
  then: show "@PID =" < PID

/usr/local/bin/getppid:

  #!/bin/ksh
  print $PPID

Bob

-- 
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).


More information about the Filepro-list mailing list