*nix tail -f multiple log files with Thread

Christian Heimes lists at cheimes.de
Fri Feb 13 13:50:06 EST 2009


David schrieb:
> Hi everyone,
> 
> I copied a program from C to track multiple log files. I would like to
> be able to print a label when a log file is updated. Here is the program;

Don't use threads for the job. On Unix the preferred way is select()'ing
or poll()'ing multiple file descriptors.

Christian




More information about the Python-list mailing list