[CentOS] /proc process information on centos 4.1

James Olin Oden james.oden at gmail.com
Tue Oct 4 13:53:21 UTC 2005


On 10/3/05, Jerry Geis <geisj at pagestation.com> wrote:
>
> Is there a way to tell through /proc or something else which
> files a process has open and more importantly what position the read
> pointer is in for that open file?
>
> As an example if I am reading a file with a program I have no control
> over,
> and I kill that program, I need to know when in the data file that
> program was
> reading at that time.
>
> Is this information available and if so how to read it?

 ls -l /proc/$pid/fd
 Cheers...james

Thanks,
>
> Jerry
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20051004/2fdaf42b/attachment.html>


More information about the CentOS mailing list