From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653646721656.tru64-unix-managers.marc@archive.invalid> From: Hugh.Pritchard () DC ! gov Date: Mon, 23 Apr 2001 15:43:42 +0000 To: tru64-unix-managers Subject: SUMMARY: Script or tool to show users' current working directories? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653646721656 Pascal Van Bever suggested I try lsof. For those of you who thought I couldn't think of a way to find my *own* current working directory, yes, I do know the 'pwd' command. And I didn't need the users' *starting* current working directories, their $HOME. I did consider (briefly) re-doing all users' /etc/passwd entries so they used ksh--ksh maintains the environment variable $PWD, which is what I want to see, and which is visible using the 'ps e' (BSD-compatible 'show environment' option) command. -- Hugh Pritchard (Tier Technologies), 202-724-4690 D.C. Ofc of Corporation Counsel, Child Support Enforcement Division mailto:Hugh.Pritchard@DC.gov > From: Van Bever, Pascal [mailto:Pascal.VanBever@compaq.com] > Sent: Monday, April 23, 2001 10:02 AM > To: 'Hugh.Pritchard@DC.gov' > Subject: RE: Script or tool to show users' current working directories? > > Hello Hugh, > > not sure if I understand you correctly... > if you're looking for the current working directory of a > logged in user (process) you may have a look at lsof (list open file) > # lsof -p | grep cwd > > info on lsof are at > http://www.tru64unix.compaq.com/demos/ossc-v5.0/html/lsof.htm > -----Original Message----- > From: Hugh.Pritchard@DC.gov [mailto:Hugh.Pritchard@DC.gov] > Sent: Monday, 23 April 2001 15:47 > To: tru64-unix-managers@ornl.gov > Subject: Script or tool to show users' current working directories? > > Is there a tool, script, or code somewhere to display users' current > working directories? > We have an old database system (UniVerse) which relies on > finding files > in a user's CWD. > > -- > Hugh Pritchard (Tier Technologies), 202-724-4690 > D.C. Ofc of Corporation Counsel, Child Support Enforcement Division > mailto:Hugh.Pritchard@DC.gov >