From mboxrd@z Thu Jan 1 00:00:00 1970 From: Prasanta Sadhukhan Subject: Getting pid of exec'd process Date: Thu, 22 Mar 2007 16:41:43 +0530 Message-ID: <4602646F.3040906@sun.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; format="flowed"; charset="us-ascii" To: linux-c-programming@vger.kernel.org Hi, Can anyone suggest as to how can I get the pid of the process which I have done execv()? ie, if I do execv(path, cmd) a new process will be launched and now how can I get the pid of this new process? Regard Prasanta