From owner-freebsd-questions Wed Dec 1 3:54:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id ED57A14E80 for ; Wed, 1 Dec 1999 03:54:47 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.040 #1) id 11t8LA-000ESw-00; Wed, 01 Dec 1999 13:54:32 +0200 From: Sheldon Hearn To: Jerry Preeper Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: how to get name of perl program running from pid In-reply-to: Your message of "Tue, 30 Nov 1999 19:12:49 PST." <3.0.5.32.19991130191249.00878260@cts.com> Date: Wed, 01 Dec 1999 13:54:32 +0200 Message-ID: <55609.944049272@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 30 Nov 1999 19:12:49 PST, Jerry Preeper wrote: > I was wondering if there is a way to find out which perl program is being > run by knowing it's PID. This'll work with a lot of Bourne / Korn shells: foo=`ps PID`; echo ${foo##* } Obviously, PID represents the actual number you'd plug in. And yes, there are _lots_ of ways to do this. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message