Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

NAME

inw - inotifywait wrapper

SYNOPSIS

inw [options and inotifywait arguments]

DESCRIPTION

inw is a wrapper for inotifywait (from inotify-tools) that waits for a given time after a file change for additional changes and returns if no changes have been made for a specific amount of time.

This might be useful if you trigger e.g. unison from a shell script or incrond but don't want to synchronize on every change but rather when nothing has been written for like 5 seconds.

OPTIONS

NOTE

Options can't be be bundled, that is, you can't write -ABC 123 for -A -B -C 123. -ABC would be recogized as -A BC, that is BC being an argument to -A.

You can mix inw options and inotifywait arguments on the command line; everything unknown to inw will be passed to inotifywait.

-T NUM

Wait NUM seconds after the last change to a file for other changes before returning.

-M NUM

Exit after NUM seconds after the first change to a file, regardless of -T. This is an overall timeout to prevent inw from never returning if something changes a file continuously.

-V

Be verbose.

-N

Assume the first change to a file has already been done; just watch out for subsequent writes. Might be useful from within incron.

BUGS

Probably. Please report them to the GitHub issue tracker, preferably with pull request :-).

COPYRIGHT & LICENSE

Copyright 2013 Sebastian Schmidt <yath@yath.de>.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 (not “any later” and no different version) as published by the Free Software Foundation.

About

inotifywait wrapper

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages