Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Dec 1999 13:54:32 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        Jerry Preeper <preeper@cts.com>
Cc:        FreeBSD-questions@FreeBSD.ORG
Subject:   Re: how to get name of perl program running from pid 
Message-ID:  <55609.944049272@axl.noc.iafrica.com>
In-Reply-To: Your message of "Tue, 30 Nov 1999 19:12:49 PST." <3.0.5.32.19991130191249.00878260@cts.com> 

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55609.944049272>