> Magnus Heino <magnus.heino at rivermen.se> writes: > > > How can I know if a file changes? > > > > Just like the tail command, I want to know when lines are added to a file, > > and be able to read them. Use os.stat to track the last modification time of the file (and to detect when it changes): import os, stat os.stat(somefile)[stat.ST_MTIME] -Dave