SkillAgentSearch skills...

Monfolder

File creation monitor daemon using fanotify call

Install / Use

/learn @tmartiro/Monfolder
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

monfolder

This version is monitor mount point for a new file creation. The program supports recursive monitoring of file creation. When file is created the program executes specified script which was passed itself as an argument.

It uses linux kernel fanotify API for monitoring events. [http://man7.org/linux/man-pages/man7/fanotify.7.html]

how to compile

  • clone repo
  • change dir to "monfolder"
  • invoke make

usage

monfolder <mount_folder> <script_to_execute>

example

monfolder /var/www /home/tmartiro/sync.sh

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks0

Languages

C

Security Score

55/100

Audited on Aug 20, 2024

No findings