Skip to content

Commit af66bd7

Browse files
authored
Merge pull request #6 from devilbox/WAT-006
WAT-006 Link sister project
2 parents 8dd94f9 + 9cde44b commit af66bd7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ watcherd will look for directory changes (added and deleted directories) under t
66
Once all events have happened during one round (`-i`), a trigger command can be executed (`-t`).
77
Note, the trigger command will only be execute when at least one add or delete command has succeeded with exit code 0.
88

9+
---
10+
11+
If you need the same functionality to monitor changes of listening ports, check out **[watcherp](https://github.com/devilbox/watcherp)**.
12+
13+
---
14+
915
### Modes
1016

1117
watcherd can either use the native [inotifywait](https://linux.die.net/man/1/inotifywait) implementation or if this is not available on your system use a custom bash implementation. The default is to use bash.

watcherd

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ IFS=$'\n'
2525

2626
# Versioning
2727
MY_NAME="watcherd"
28-
MY_DATE="2017-09-17"
29-
MY_URL="https://github.com/devilbox/vhost-gen"
28+
MY_DATE="2017-09-29"
29+
MY_URL="https://github.com/devilbox/watcherd"
3030
MY_AUTHOR="cytopia <[email protected]>"
3131
MY_GPGKEY="0xA02C56F0"
3232
MY_VERSION="0.1"
@@ -77,9 +77,6 @@ function print_help() {
7777
printf "\nOptional arguments:\n"
7878
printf " -t <cmd> %s\n" "Command to execute after all directories have been added or deleted during one round."
7979
printf " %s\n" "No argument will be appended."
80-
printf " %s\n" "%p The full path of the directory that changed (added, deleted)."
81-
printf " %s\n" "%n The name of the directory that changed (added, deleted)."
82-
printf " %s\n" "Example: -t \"script.sh -f %p -c %n -a %p\""
8380
printf " -w <str> %s\n" "The directory watcher to use. Valid values are:"
8481
printf " %s\n" "'inotify': Uses inotifywait to watch for directory changes."
8582
printf " %s\n" "'bash': Uses a bash loop to watch for directory changes."

0 commit comments

Comments
 (0)