From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2b469b7662ecf580,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-04-02 07:14:57 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: conti@openaccess.it (Vincenzo Conti) Newsgroups: comp.unix.tru64 Subject: process management path retrieve Date: 2 Apr 2003 07:14:56 -0800 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 32.97.110.66 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1049296496 6652 127.0.0.1 (2 Apr 2003 15:14:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Apr 2003 15:14:56 GMT Xref: archiver1.google.com comp.unix.tru64:9786 >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. That is I execute ./proof.sh --> from ps command I retrieve that command. I need to know the absolute path of proof.sh. I tried using what it is shown in proc(4) man, using PIOCPSINFO and prpsinfo struct but I cannot retrieve this information. Could you help me ? Any suggestions ? Thank you very much. Vincenzo Conti