public
Description: a little Ruby app that watches a directory for file additions and removals. It can even trigger an action on changes!
Homepage: http://blog.jerodsanto.net
Clone URL: git://github.com/sant0sk1/monitdir.git
sant0sk1 (author)
Wed Jul 16 15:03:14 -0700 2008
commit  3a69d9575023095f50460c843169f8f9c353baae
tree    b2c950a5ac540d831382ea3eee22191eacf2fb33
parent  5fcdc83765429d3155a554c26c8d0b2a56e16c27
name age message
file README.markdown Loading commit data...
file monitDir.rb
file monitDird
README.markdown

About

Monitors a directory at given interval for file additions/subtractions. When a file is added or removed it will either print said file or perform an action as specified in command line arguments. Best run as daemon

Usage

monitDir.rb -d [directory to monitor] [options]

use monitDir.rb -h for more info

Options

-d, --directory   Directory to monitor (required)
-r, --recursive   Monitor subdirectories too (default = off)
-i, --interval    Time between polls, in seconds (default = 5)
-e, --execute     Command to execute when directory changes
-p, --pass-file   Used in conjunction with -e, filenames are passed as argument to action
-h, --help        Displays help message
-v, --version     Display the version, then exit

Author

Jerod Santo, email = "moc.liamg@otnas.dorej".reverse

Copyright

Copyright (c) 2008 Jerod Santo. Licensed under the MIT License