Re: How to get a process working directory in HP-UX system



"Wu Ting Bin" <wutingbin@xxxxxxxxx> wrote in message
news:1194426153.123297.225880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

Our code need get to know the working directory of given process based
specific pid. Could anyone give me a hand to give me informations?

This is a problem I can not get from google search.

Thank you very much


Try lsof (with -p pid) available from http://hpux.cs.utah.edu/

The first line should have the FD of 'cwd' and be your current working
directory.



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Re: How to get a process working directory in HP-UX system
    ... Wu Ting Bin wrote: ... Our code need get to know the working directory of given process based ... specific pid. ... printf("pid is %d, command is %s\n", ...
    (comp.sys.hp.hpux)
  • Re: alternative to cwd()
    ... Tintin wrote: ... > Seriously, why not cwd? ... "Find the current working directory. ... -- T. Pratchett ...
    (comp.lang.perl.misc)
  • Re: Executable Jar file reading files.
    ... make the CWD (current working directory) the same as you had it in ... your RAD. ... It is a newbie question, ...
    (comp.lang.java.programmer)
  • MAPI calls change current working dir
    ... i recently experienced that calling MAPI functions results in change of the ... current working directory. ...
    (microsoft.public.outlook.program_addins)
  • Re: unable to open file
    ... [Please use line breaks at about 75 character as has been customary for ... Find out your CWD (current working directory) and ...
    (comp.lang.perl.misc)