https://github.com/kazhuu/inotify-example
Simple example program using inotify to watch file metadata and modify changes
https://github.com/kazhuu/inotify-example
cmake example example-code inotify linux linux-kernel
Last synced: about 2 months ago
JSON representation
Simple example program using inotify to watch file metadata and modify changes
- Host: GitHub
- URL: https://github.com/kazhuu/inotify-example
- Owner: Kazhuu
- Created: 2018-09-26T20:18:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T20:22:11.000Z (about 7 years ago)
- Last Synced: 2025-03-25T09:52:47.161Z (7 months ago)
- Topics: cmake, example, example-code, inotify, linux, linux-kernel
- Language: C
- Size: 1000 Bytes
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linux inotify example
Simple example program to test Linux [inotify](http://man7.org/linux/man-pages/man7/inotify.7.html) api. Watches provided `sample` file for metadata and modify changes.
## Usage
Build using CMake
```
mkdir build
cd build
cmake -G "Unix Makefiles" ..
make
```
After build run with
```
./inotify
```
While running try to touch `sample` file or modify it and save. You should see program print events to the terminal.## License
MIT license