++ed by:
ILUX GUGOD
1 non-PAUSE user
Author image MATSUNO★…Tokuhiro
and 7 contributors

NAME

watcher - watch the file updates

SYNOPSIS

    % watcher --dir . -- osascript -e 'tell application "Google Chrome" to reload active tab of window 1'

        --dir=.      Directory to watch.
        --exclude    Directory to ignore.
        --filter     Regex of files to ignore 
        --signal=HUP Sending signal to restart(Default: TERM)(EXPERIMENTAL)
        --send_only  Sending signal without fork/exec(EXPERIMENTAL)
        -h --help    show this help

DESCRIPTION

This command watches the directory updates, and run the commands.

If no filter is provided via the --filter option, a default filter will be used. This default filter ignores files and directories prefixed with a dot, .bak files, and files ending with a ~.

Sending SIGHUP without restart process

(EXPERIMENTAL)

watcher can send SIGHUP without process restarting.

    % watcher --signal=HUP --send_only -- ...

AUTHOR

Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>

SEE ALSO

Filesys::Notify::Simple

LICENSE

Copyright (C) Tokuhiro Matsuno

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.