Different flags to use in incron (According to their website):
There are
two sets of magic flags here - the first is the IN_CLOSE_WRITE, and the second
is $@/$#. The second set of flags is simpler to explain as there are fewer of
them:
•$$ - a dollar sign
•$@ - the watched filesystem path (ie. the
path you're watching)
•$# - the event-related file name
•$% - the event flags (textually)
•$& - the event flags (numerically)
The actual
event flags include IN_CLOSE_WRITE, which means that a file was closed for
writing. The full list of supported flags includes:
•IN_ACCESS File was accessed (read)
•IN_ATTRIB Metadata changed (permissions,
timestamps, extended attributes, etc.)
•IN_CLOSE_WRITE File opened for writing was
closed
•IN_CLOSE_NOWRITE File not opened for writing
was closed
•IN_CREATE File/directory created in watched
directory
•IN_DELETE File/directory deleted from watched
directory
•IN_DELETE_SELF Watched file/directory was
itself deleted
•IN_MODIFY File was modified
•IN_MOVE_SELF Watched file/directory was
itself moved
•IN_MOVED_FROM File moved out of watched
directory
•IN_MOVED_TO File moved into watched directory
•IN_OPEN File was opened
Multiple
flags may be separated via commas.