Will re-reading a file being updated in /proc without closing work? Will re-reading a file being updated in /proc without closing work? unix unix

Will re-reading a file being updated in /proc without closing work?


Both of those should work. seek should clear the EOF flag on your filehandle so you can read it a second time, but if you need to be absolutely sure you're getting a fresh copy, I would go with closing and re-opening.

See seek for more information.