Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 1999 11:25:39 +0600 (OS)
From:      Eugeny Kuzakov <kev@lab321.ru>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: pid&work dir
Message-ID:  <Pine.BSF.4.02.9901251121500.15040-100000@lab321.ru>
In-Reply-To: <19990124231635.A13953@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 24 Jan 1999, Dan Nelson wrote:

> > One question.
> > I know PID of process. How can I know work dir, where it run ?
> > Linux has key for ps. In Solaris I can view it in /proc..
> > thaks for advices.
> fstat -p pid
> or (after installing /usr/ports/sysutils/lsof)
> lsof -p pid
> I recommend using lsof, since it's portable across most Unixes and that
> means you only have to learn one command.
I know about this. This commands shows which files/sockets process use...
"I know work dir, where it run ?"...

--
	Best wishes, Eugeny Kuzakov
		Laboratory 321 ( Omsk, Russia )
		kev@lab321.ru
		ICQ#: 5885106



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02.9901251121500.15040-100000>