gabriel rosenkoetter on 5 Jan 2004 23:09:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] How to find parent in the shell?


On Mon, Jan 05, 2004 at 02:53:31PM -0500, Stephen Gran wrote:
> portable and feed it back to upstream.  Any pointers towards something
> truly portable would be great.  Again, people with other platforms
> (hint) are a big help, because I don't have access to them myself.

Well, getppid(2) seems like the Right way to do this, and various
shells provide direct access to it's output (it's $PPID in zsh, for
instance).

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpEk1r7fDvqG.pgp
Description: PGP signature