Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!gatech!ncar!ames!lll-tis!oodis01!uplherc!esunix!bpendlet From: bpendlet@esunix.UUCP (Bob Pendleton) Newsgroups: comp.unix.wizards Subject: how to find childs current working directory? Message-ID: <843@esunix.UUCP> Date: 20 May 88 20:56:22 GMT Organization: Evans & Sutherland, Salt Lake City, Utah Lines: 19 I have a need to find the current working directory of a child process. The child is usually csh, but it can be any program. The closest I've come to a solution is to use ptrace PEEK_USER to get at the current directory pointer and some how open the directory so I can read it using readdir. I don't know if this is possible, or even the right approach. Any suggestions, pointers to documentation, or best, code, would be greatly appreciated. Thanks Bob Pendleton -- Bob Pendleton @ Evans & Sutherland UUCP Address: {decvax,ucbvax,ihnp4,allegra}!decwrl!esunix!bpendlet Alternate: {ihnp4,seismo}!utah-cs!utah-gr!uplherc!esunix!bpendlet I am solely responsible for what I say.