Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Watcher script - please comment



Am 05.05.2010 um 14:14 schrieb Sebastian Stark:

> 
> Am 05.05.2010 um 13:25 schrieb Helmut Jarausch:
>> I'd like to start a "daemon" which notifies me if some file
>> is no longer accessed (e.g. by rsync from a remote host).
> 
> Under Linux, an elegant solution would be incron:
> 
>  http://inotify.aiken.cz/?section=incron&page=about&lang=en

Even better (still under linux):

Install inotify-tools and run:

  inotifywait -e close_write ~/testfile

Once ~/testfile is closed inotifywait exits.


Sebastian



Messages sorted by: Reverse Date, Date, Thread, Author