GithubHelp home page GithubHelp logo

joebew42 / cwatch Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 9.0 342 KB

A lightweight program to monitor the events of the file system through the inotify kernel library and triggers user defined commands based on event type.

License: GNU General Public License v2.0

Shell 11.29% C 87.54% Makefile 0.65% M4 0.52%

cwatch's Introduction

cwatch

Build Status

A program to monitor the filesystem activity through the inotify Linux kernel library and executes a user defined command when specific events occurs. Useful for automatic backup system, alert monitor for directories and files, continuous testing and more.

This is a experimental release. At this stage we are testing the software as best as we can. If you would like to help us to test and improve this software, feel free to do everything you want.

Requirements:

sudo apt install check

A Quick-start:

  1. Clone the project:

      $git clone https://github.com/joebew42/cwatch.git
    
  2. Compile it:

      $cd cwatch/
    
      $autoreconf --install
    
      $./configure
    
      $make
    
  3. Run all tests:

      $make -s check
    
  4. Start use it:

    4.1. Read the manual

     ./src/cwatch --help
    

    4.2. Share with us your use case

Note: This README is just a draft. In the next days we will provide a new one well organized.

Practical Examples

Run tests every time a file changes in the src/ directory

./src/cwatch -c "make -s check" -d src/ -v -n

NOTE โš ๏ธ This generates a loop since make -s check will update the objects files (.o) inside the src/ folder.

Run tests every time a *.c or *.h changes in the src/ directory

./src/cwatch -c "make -s check" -d src/ -v -n -X '.*\.[ch]$'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.