Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Watcher script - please comment
- X-seq: zsh-users 15050
- From: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- To: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- Subject: Re: Watcher script - please comment
- Date: Wed, 5 May 2010 14:52:30 +0200
- Cc: jarausch@xxxxxxxxxxxxxxxxxxx, zsh-users@xxxxxxx
- In-reply-to: <45F26063-FF63-4BF9-AF07-F9AB5C3DFC49@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <tkrat.d90ba1177c225a6b@xxxxxxxxxxxxxxxxxxx> <45F26063-FF63-4BF9-AF07-F9AB5C3DFC49@xxxxxxxxxxx>
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