Peter Hansen wrote: >Use time.sleep(). > >-Peter > If I use sleep, I have to know how long the process should sleep, but sometimes it should sleep for seconds and sometimes for minutes. So it would be good if I can put it to sleep and somehow wake it up if the file changed. Tom