notification of file truncate
nishant.deshpande at gmail.com
nishant.deshpande at gmail.com
Mon May 5 22:27:03 EDT 2008
hi,
I am running ubuntu 7.1 (linux 2.6.22-12-generic)
i was trying to implement 'tail -f' (well tail -F actually but for
this example i think its not relevent) and one of the features which i
couldn't get in python was notification of truncation of a file.
i looked at the inotify (the pyinotify package) and then the linux
inotify functionality.
i don't see the truncation notification anywhere... yet tail -F
notifies that the file has been truncated and repositions its offset
at top of the file to print out the next lines.
can anyone shed some light on this? i guess i need to look at the bash
tail code..
More information about the Python-list
mailing list