Skip to content

franFodor/watchcatd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

watchcatd

Simple daemon to keep track of changes on a file. Changes being access, modify and delete. Can be used, for example, to monitor external server log file to see when someone logs into the server.

Installation

Run simply with make:

make all  

On Ubuntu 24.04 LTS you might need to install the notification libary for the header file: sudo apt install libnotify-dev.

After running with ./watchcatd <FILE_PATH> (you can try .watchcatd src/test.txt for instance), it will start a daemon.

To kill it, you will have to find the process and kill it. You can use the following command to get PID ps -ef | grep watchcatd and then kill -2 <PID> to kill it. Make sure to use SIGINT (-2) as it handles daemon cleanup.

About

Simple daemon to keep track of changes on a file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published