Subversion Repositories public

Rev

Rev 45 | Rev 55 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 45 Rev 47
Line 67... Line 67...
67
  $$ - a dollar sign
67
  $$ - a dollar sign
68
  $@ - the watched filesystem path (see above)
68
  $@ - the watched filesystem path (see above)
69
  $# - the event-related file name
69
  $# - the event-related file name
70
70
71
Example: You need to run program 'abc' with the full file path as
71
The mask may additionaly contain a special symbol IN_NO_LOOP which
-
 
72
disables events occurred during the event handling (to avoid loops).
-
 
73
-
 
74
Example: You need to run program 'abc' with the full file path as
72
an argument every time a file is changed in /var/mail. One of
75
an argument every time a file is changed in /var/mail. One of
73
the solutions follows:
76
the solutions follows:
74
77
75
/var/mail IN_CLOSE_WRITE abc $@/$#
78
/var/mail IN_CLOSE_WRITE abc $@/$#
76
79