Skip to content

Simple filesystem event monitoring application for Linux

License

Notifications You must be signed in to change notification settings

ghorbanzade/watchdog

Repository files navigation

Watchdog

Build

Introduction

Watchdog is a simple filesystem event monitoring application for Linux. It helps collect basic information about processes that access or modify filesystem objects in a speficied set of directories.

The most well-known API to detect filesystem events is inotify. But the inotify API does not provide any information about the user or process that initiates events. Watchdog attempts to find this information by using the command-line tool lsof that is designed to Lists Open Files.

Note: This project was designed and developed in less than a day and as a proof of concept. It is too crude to be used as a dependency for any side project, let alone in production code. We recommend that you checkout fswatch if you are simply looking to capture file change events and do not need process information.

Helpful Links