An open API service indexing awesome lists of open source software.

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

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