wendy

run arbitrary commands on inotify events
git clone git://iotek.org/wendy
Log | Files | Refs | README | LICENSE

commit 89f765ac51ddda0d47d2124b36de1de2fc793864
parent b9cb39779b27020654b686de18f2114c9613752b
Author: z3bra <willy@mailoo.org>
Date:   Mon Feb 10 09:58:55 2014

Fixed makefile and add sane defaults

Diffstat:
 Makefile | 2 +-
 wendy.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -14,7 +14,7 @@ RM=/bin/rm .c.o: @echo -e "CC $<" - @${CC} -c $^ -o $< ${CFLAGS} + @${CC} -c $< -o $@ ${CFLAGS} wendy : wendy.o @echo -e "LD wendy" diff --git a/wendy.c b/wendy.c @@ -26,8 +26,8 @@ /* maximum number of event * queuing at the same time */ #define BUF_LEN (512 * (EVENT_SIZE+16)) -#define DEFAULT_FILE "/var/spool/mail/directory/new" -#define DEFAULT_CHECK 300 /* defaults to 5 minutes */ +#define DEFAULT_FILE "." /* defaults to current directory */ +#define DEFAULT_CHECK 1 /* defaults to 1 second */ extern char **environ;