From owner-freebsd-hackers Fri Nov 20 03:49:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA21546 for freebsd-hackers-outgoing; Fri, 20 Nov 1998 03:49:26 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA21540 for ; Fri, 20 Nov 1998 03:49:23 -0800 (PST) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.9.1/8.9.1) with ESMTP id LAA09976 for ; Fri, 20 Nov 1998 11:48:49 GMT Message-ID: <36555721.8E3D2CDF@tdx.co.uk> Date: Fri, 20 Nov 1998 11:48:49 +0000 From: Karl Pielorz Organization: TDX - The Digital eXchange X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: Getting PID of parent pipe? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Is there an 'easy' way of getting the PID of a parent process feeding a command's stdin? e.g. cat something | foo | bar I need to get the PID of foo while running as bar... -Kp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message