watcher - watch the file updates
% 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
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 ~.
--filter
(EXPERIMENTAL)
watcher can send SIGHUP without process restarting.
% watcher --signal=HUP --send_only -- ...
Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
Filesys::Notify::Simple
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::watcher, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::watcher
CPAN shell
perl -MCPAN -e shell install App::watcher
For more information on module installation, please visit the detailed CPAN module installation guide.