bug-bash
[Top][All Lists]
Advanced

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

process id's in a world of cooperating subshells


From: Bruce Korb
Subject: process id's in a world of cooperating subshells
Date: Mon, 18 Sep 2006 10:55:17 -0700

Hi,

As far as I am able to tell, there is no well-known way to ascertain the
current pid of a subshell.  You can write programs that return their
parent's pid, but that is pretty hacky.  So, I dug through some sketchy
docs and examples about rolling your own built in BASH commands and
came up with something that almost works.  Sigh.  I'm sure it is pretty
close.  Anybody with a few minutes to give me a hint?  :)  Thanks - Bruce

Attachment: mypid.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]