1830238 Members
2380 Online
109999 Solutions
New Discussion

programatic file offset?

 
Gary L. Paveza, Jr.
Trusted Contributor

programatic file offset?

Within glance, the ability to see where in a file a given process is current located (it's offset) is used by us to try to estimate how long the program needs to run (it's a serial process). Is there anyway to progamatically determine offset location outside glance? If I know the process ID, the file being accessed, etc?
2 REPLIES 2
Bill McNAMARA_1
Honored Contributor

Re: programatic file offset?

not easily for all the information you want.
You should get and install lsof
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf58885079106d71190050090279cd0f9,00.html

Later,
Bill
It works for me (tm)
Robin Wakefield
Honored Contributor

Re: programatic file offset?

Hi Gary,

As Bill says, lsof should do it. Attached is something I put together for tracking a mail message being sent out to the internet.

rgds, Robin