|
Home > Archive > Unix questions > November 2006 > directory of running programs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
directory of running programs
|
|
| Mohsen 2006-11-28, 7:24 pm |
| Hi all,
I need to know what programs in which directories are running. I am
using, top, ps ugux ... but none of them tell me where is the directory
of running program.
Thanks,
Mohsen
| |
|
| In article <1164750563.999320.233900@j44g2000cwa.googlegroups.com>,
"Mohsen" <jafarikia@gmail.com> wrote:
> Hi all,
> I need to know what programs in which directories are running. I am
> using, top, ps ugux ... but none of them tell me where is the directory
> of running program.
> Thanks,
> Mohsen
Try ps aegx
or
ps aegxw
or even
ps aegxww
Boyd
| |
| Bill Marcum 2006-11-28, 7:24 pm |
| On 28 Nov 2006 13:49:24 -0800, Mohsen
<jafarikia@gmail.com> wrote:
> Hi all,
> I need to know what programs in which directories are running. I am
> using, top, ps ugux ... but none of them tell me where is the directory
> of running program.
> Thanks,
> Mohsen
>
Why do you need to know this?
On a system with a /proc file system like Linux, you can use
readlink /proc/$PID/exe
--
You are always busy.
| |
| Michel Bardiaux 2006-11-29, 1:17 pm |
| On Tue, 28 Nov 2006 17:12:31 -0500, Bill Marcum <bmarcum@iglou.com>
wrote:
>On 28 Nov 2006 13:49:24 -0800, Mohsen
> <jafarikia@gmail.com> wrote:
>Why do you need to know this?
>On a system with a /proc file system like Linux, you can use
>readlink /proc/$PID/exe
Or maybe /proc/$PID/cwd. Its not very clear what the OP wants.
|
|
|
|
|