From: Hugh.Pritchard () DC ! gov
To: tru64-unix-managers
Subject: SUMMARY: Script or tool to show users' current working directories?
Date: Mon, 23 Apr 2001 15:43:42 +0000 [thread overview]
Message-ID: <102653646721656.tru64-unix-managers.marc@archive.invalid> (raw)
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 <pid> | 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
>
next reply other threads:[~2001-04-23 15:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-23 15:43 Hugh.Pritchard [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-24 22:41 Summary: Script or tool to show users' current working directories? richard n. frank
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