Hi satya,
That would give me home directory, what I am looking for is present working directory for a particular user.
-Anshul
----- Original Message -----
From: "Satya" satyap@satya.virtualave.net To: linuxers@mm.ilug-bom.org.in Sent: Saturday, June 09, 2001 12:04 AM Subject: Re: [ILUG-BOM] wd of user
Mail from ILUG-BOM List!
On Jun 8, 2001 at 22:41, Anshul Gupta wrote:
I was just wondering whther we can find out working directory of users logged in the system.
finger them.
-- Satya. URL:http://satya.virtualave.net/ US-bound grad students! For pre-apps, see
Computer lie #1: you'll never use all that disk space.
Linuxers mailing list Linuxers@mm.ilug-bom.org.in http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
[apologies for replyin to reply. lost original mail]
Anshul Gupta wrote:
what I am looking for is present working directory for a particular user.
here's a small script which uses the /proc to query the CWD of all "$PROCESS"'es.
PROCESS=bash
for pid in `ps ax -o pid,cmd --no-headers | grep $PROCESS | sed -e "s/^ *//" | cut -f1 -d" "` do cd /proc/$pid/cwd PWD=`pwd -P` echo $PWD done
Hi all,
Is the list down again? Or am I not getting the mail through it?
- Shishir
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Hi,
yes the list was down in the morning due to vsnl link going down.
it is back online now.
best regards,
parag mehta
To be intoxicated is to feel sophisticated but not be able to say it.