gabriel rosenkoetter on 6 Jan 2004 20:51:02 -0000


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

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


On Tue, Jan 06, 2004 at 03:11:11PM -0500, Stephen Gran wrote:
> Well, that would actually be fine.  The only thing I am trying to do is
> have the script run at boot, but not be rerun on upgrade.

It's worth noting that $PPID is NOT documented to be defined by
sh(1), though you may get away with that on Linux, since it uses
bash(1) as sh(1). You should be aware of the portability
implication, though. (This will NOT work on a traditional sh(1)
implementation.)

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpoWk2Blpd9t.pgp
Description: PGP signature