A tool for monitoring file changes
- 安装cmake,Macos:
brew install cmake
centos:sudo yum install cmake
- 安装编译器,Macos自带了clang++,linux:
sudo yum -y install gcc gcc-c++
git clone [email protected]:tiyee/FileWatcher.git
cd FileWatcher
mkdir build && cd build
cmake ..
make
cd ..
./bin/FileWatcher -f `pwd`/logs/test.log -f `pwd`/logs/test2.log
因为是测试,所以log日志也会在控制台输出,实际应该讲log写入文件,控制台只输出文件变化,供bash捕捉
1.linux支持(正在进行)