Directory process was started from ?

Dirk Moolman DirkM
Fri Jan 5 08:59:33 PST 2007



-----Original Message-----
From: linux-users-bounces at linux-sxs.org
[mailto:linux-users-bounces at linux-sxs.org] On Behalf Of David Bandel
Sent: 04 January 2007 10:56 PM
To: Linux tips and tricks
Subject: Re: Directory process was started from ?

On 1/4/07, Dirk Moolman <DirkM at agilitytech.co.za> wrote:
> Hi, I have an interesting question (err, well, for me at least)
>
> Is there a way I can see which directory a process was started from ?
> Let's say I have an app, but in directory1 and also in directory2, and
I
> start the app from one of them.
>
> Is there a way to see in the process list (ps) which directory it was
> started from ?

>try:
>fuser /directory1/progname
>
>If fuser returns a pid, that's the one that's running.


Excellent, tried and tested    :-)

Thank you very much


Disclaimer: http://196.33.167.70/disclaimer





More information about the Linux-users mailing list