Subject: Tip'O'The'Day : inotifywait Want to watch thousands of directories to see if anything happens?
sudo apt-get install inotify-tools inotifywait -r -m dir Setting up watches. Beware: since -r was given, this may take a while! Watches established. dir/private/ CREATE foo dir/private/ OPEN foo dir/private/ MODIFY foo dir/private/ CLOSE_WRITE,CLOSE foo dir/private/ DELETE foo It occurs to me this makes a lovely "side channel" way of profiling and optimizing the performance of a complex system. If it touches the filesystem in any way from any process... you can know about it! -- John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : [email protected] New Zealand
