Guest User

watcher

a guest
Aug 20th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. ; ----------------------
  2. ; General Settings
  3. ; ----------------------
  4. [DEFAULT]
  5.  
  6. ; where to store output
  7. logfile=/tmp/watcher.log
  8.  
  9. ; where to save the PID file
  10. pidfile=/tmp/watcher.pid
  11.  
  12.  
  13. ; ----------------------
  14. ; Job Setups
  15. ; ----------------------
  16.  
  17. [job1]
  18. ; directory or file to watch. Probably should be abs path.
  19. watch=/path/to/Series
  20.  
  21. ; list of events to watch for.
  22. ; supported events:
  23. ; 'access' - File was accessed (read) (*)
  24. ; 'attribute_change' - Metadata changed (permissions, timestamps, extended attributes, etc.) (*)
  25. ; 'write_close' - File opened for writing was closed (*)
  26. ; 'nowrite_close' - File not opened for writing was closed (*)
  27. ; 'create' - File/directory created in watched directory (*)
  28. ; 'delete' - File/directory deleted from watched directory (*)
  29. ; 'self_delete' - Watched file/directory was itself deleted
  30. ; 'modify' - File was modified (*)
  31. ; 'self_move' - Watched file/directory was itself moved
  32. ; 'move_from' - File moved out of watched directory (*)
  33. ; 'move_to' - File moved into watched directory (*)
  34. ; 'open' - File was opened (*)
  35. ; 'all' - Any of the above events are fired
  36. ; 'move' - A combination of 'move_from' and 'move_to'
  37. ; 'close' - A combination of 'write_close' and 'nowrite_close'
  38. ;
  39. ; When monitoring a directory, the events marked with an asterisk (*) above
  40. ; can occur for files in the directory, in which case the name field in the
  41. ; returned event data identifies the name of the file within the directory.
  42. events=create,move_to
  43.  
  44. ; Comma separated list of excluded dir. Absolute path needed.
  45. ; Leave blank if no excluded dir setted
  46. excluded=
  47.  
  48. ; if true, watcher will monitor directories recursively for changes
  49. recursive=true
  50.  
  51. ; if true, watcher will automatically watch new subdirectory
  52. autoadd=true
  53.  
  54. ; the command to run. Can be any command. It's run as whatever user started watcher.
  55. ; The following wildards may be used inside command specification:
  56. ; $$ dollar sign
  57. ; $watched watched filesystem path (see above)
  58. ; $filename event-related file name
  59. ; $tflags event flags (textually)
  60. ; $nflags event flags (numerically)
  61. command=chmod -R 755 $filename
  62. [job2]
  63. ; directory or file to watch. Probably should be abs path.
  64. watch=/path/to/Movies
  65.  
  66. ; list of events to watch for.
  67. ; supported events:
  68. ; 'access' - File was accessed (read) (*)
  69. ; 'attribute_change' - Metadata changed (permissions, timestamps, extended attributes, etc.) (*)
  70. ; 'write_close' - File opened for writing was closed (*)
  71. ; 'nowrite_close' - File not opened for writing was closed (*)
  72. ; 'create' - File/directory created in watched directory (*)
  73. ; 'delete' - File/directory deleted from watched directory (*)
  74. ; 'self_delete' - Watched file/directory was itself deleted
  75. ; 'modify' - File was modified (*)
  76. ; 'self_move' - Watched file/directory was itself moved
  77. ; 'move_from' - File moved out of watched directory (*)
  78. ; 'move_to' - File moved into watched directory (*)
  79. ; 'open' - File was opened (*)
  80. ; 'all' - Any of the above events are fired
  81. ; 'move' - A combination of 'move_from' and 'move_to'
  82. ; 'close' - A combination of 'write_close' and 'nowrite_close'
  83. ;
  84. ; When monitoring a directory, the events marked with an asterisk (*) above
  85. ; can occur for files in the directory, in which case the name field in the
  86. ; returned event data identifies the name of the file within the directory.
  87. events=create,move_to
  88.  
  89. ; Comma separated list of excluded dir. Absolute path needed.
  90. ; Leave blank if no excluded dir setted
  91. excluded=
  92.  
  93. ; if true, watcher will monitor directories recursively for changes
  94. recursive=true
  95.  
  96. ; if true, watcher will automatically watch new subdirectory
  97. autoadd=true
  98.  
  99. ; the command to run. Can be any command. It's run as whatever user started watcher.
  100. ; The following wildards may be used inside command specification:
  101. ; $$ dollar sign
  102. ; $watched watched filesystem path (see above)
  103. ; $filename event-related file name
  104. ; $tflags event flags (textually)
  105. ; $nflags event flags (numerically)
  106. command=chmod 755 -R $filename
Add Comment
Please, Sign In to add comment