get process id
Bob Stockler
bob at trebor.iglou.com
Sat Oct 9 17:41:29 PDT 2004
On Sat, Oct 09, 2004 at 01:44:10PM -0700, 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....
I don't know how you might get the PID of the current filePro
process itself into the running process.
If you're running under the KornShell or Bash:
Then: id = getenv["PPID"]
will put the parent process ID into id.
You might be able to write a USER script program that uses AWK
or Perl to read the output of "ps", with the knowledge of what
the PPID is, and the filePro progam of interest, return the
PID of the running program.
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