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?
Thanks,
Jerry
sender: "Jerry Geis" date: "Mon, Oct 03, 2005 at 10:49:09PM -0500" <<<EOQ
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?
man lsof <- for the list of files opened by a program man strace <- to take a peak at what the program is doing
Have a nice day everyone, Alex
On 10/3/05, Jerry Geis geisj@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@centos.org http://lists.centos.org/mailman/listinfo/centos