FW: UNIX TIP: WHERE WAS IT STARTED? (fwd)

David Kramer david at thekramers.net
Wed May 30 23:34:59 EDT 2001



Interesting email from the Red Hat mailing list.  I never knew this.

-------------------------------------------------------------------
DDDD   David Kramer                   http://thekramers.net
DK KD
DKK D
DK KD  Pretense and adversity are inversely proportional;
DDDD   Adversity reveals the true nature of all things.

---------- Forwarded message ----------
Date: Tue, 29 May 2001 15:45:40 -0500
Subject: [REDHAT] Re: FW: UNIX TIP: WHERE WAS IT STARTED?

Every process on the system has a directory under /proc/<PID> where a
lot of information about the process can be found.  One item is a link
to the current working directory (/proc/<PID>/cwd -> /where/ever).  That
will often, but not necessarily, be the directory where the process
started.  I looked around and can't find anything that tells where a
process was started, but maybe this helps?

-m



Statux wrote:

> I can't think of anything direct off the top of my head, but try 'lsof'
> from the lsof package :) That's what most of us do. It has pretty output.
>
> Check the man page for more info.
>
> On Tue, 29 May 2001, Smith, Lisa wrote:
>
>
>> Does anyone know if there is a linux equivalent to this command?   I have
>> not been able to find it...
>>
>> Thanks!
>>
>> Lisa
>>
>> -=-=-=-=-=-=
>>
>>
>> WHERE WAS IT STARTED?
>>
>>
>> When you want to find out
>> where a process as ben
>> started on SUN server, use:
>>
>> /usr/proc/bin/pwdx [pid].
>>
>> It will give you the path of
>> the executable.
>>
>>
>>
>> 			UNIX GURU UNIVERSE & UNIX911.com
>> 			         UNIX HOT TIP
>>
>> 			Unix Tip 1610 - May 29, 2001
>>
>> 		    http://www.ugu.com/sui/ugu/show?tip.today
>>

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list