get process id

Bob Stockler bob at trebor.iglou.com
Tue Oct 12 12:36:36 PDT 2004


On Tue, Oct 12, 2004 at 01:21:41PM -0400, Jean-Pierre A. Radley wrote:
| Bob Stockler propounded (on Tue, Oct 12, 2004 at 10:31:50AM -0400):
| | On Mon, Oct 11, 2004 at 07:02:02PM -0400, Brian K. White wrote:
| | | 
| | | Under Linux, ps refused to run in a shell spawned by a suid program.
| | 
| | The process I wrote worked on my Red Hat Linux 7.2 system.
| | 
| | | The OP in this discussion really waned the PID of the filepro process, 
| | | which the PPID of a user command gives.
| | 
| | I was advised of that in private email.
| 
| Try running John DuBois' proctree in that USER command, using:
| 	proctree -AHd2 -PPPID proctree | head -1

OK, it then returns 1521, which is not the PPID of the
filePro process:

    root  1521   951  0   Oct-05   ttyp2    00:00:00 -su -c DISPLAY=trebor:1.0 /bin/ksh
    root  1535  1521  0   Oct-05   ttyp2    00:00:00 /bin/ksh
    root 23539  1535  0 15:28:06   ttyp2    00:00:00 dclerk guru -s0 -y  -z test

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