From: duane@wasted.zk3.dec.com (Andrew Duane USG)
Subject: Re: process management path retrieve
Date: Wed, 02 Apr 2003 15:37:17 GMT [thread overview]
Message-ID: <NsDia.171$Nh2.55@news.cpqcorp.net> (raw)
In-Reply-To: f5eb69e2.0304020714.6d1da423@posting.google.com
In article <f5eb69e2.0304020714.6d1da423@posting.google.com> conti@openaccess.it (Vincenzo Conti) writes:
>From a process pid I have to retrieve command with absolute path that
>creates that process.
>From ps command I can retrieve the command but if it was executed with
>relative path, I retrieve it in that format.
I do not believe there is any way to get the full path name of the
executable if you invoke it by relative pathname. The best you could
probably do in the "./name" case is also get the cwd and put them
together to make a full pathname. But if the program was found in
the shell's search path, you are pretty much out of luck.
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
HP/Compaq Corporation Andrew.Duane@compaq.com
110 Spit Brook Road Andrew.Duane@hp.com
M/S ZKO3-3/U14
Nashua, NH 03062-2698 (603)-884-1294
prev parent reply other threads:[~2003-04-02 15:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-02 15:14 process management path retrieve Vincenzo Conti
2003-04-02 15:37 ` Andrew Duane USG [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox