pfswatch - a simple utility that detects changes in a filesystem and run given command
pfswatch [-h] [path ...] -e COMMAND
--exec | -e COMMAND Run COMMAND when detects changes in a filesystem under given path. --pipe | -p If this option enabled, path names that were changed are passed into STDIN of your command. --quiet | -q Run in quiet mode. only print COMMAND output. --help | -h Show this message.
$ pfswatch t/ lib/ -e prove -lr t/ $ pfswatch t/ lib/ --pipe -e xargs prove -l
If you want to know which file is changed, set PFSWATCH_DEBUG=1.
PFSWATCH_DEBUG=1
$ PFSWATCH_DEBUG=1 pfswatch lib -e ls -l lib
Yoshihiro Sasaki <ysasaki at cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Copyright 2011 Yoshihiro Sasaki All rights reserved.
To install App::pfswatch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::pfswatch
CPAN shell
perl -MCPAN -e shell install App::pfswatch
For more information on module installation, please visit the detailed CPAN module installation guide.