AHeimberger / Raider

Raider simple command line program to check a file for modifications, transmit or colorize file modifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIT License Build Status

header

Raider is a file listener which can do:

  • colorization of file modifications using a regular expression and printing it to the stdout.
  • transmission of file modifications via UDP to a data sink

I made this application because I needed a simple solution, which can spy a single file which is deleted, recreated and modified to store log output. Furthermore I needed to build this software for different target systems. If you need a more advanced solution to watch log files, I would recommend you to look at the log file navigator.

Options:

Usage: ./raider [options] settings
File colorization and transmitting.

Options:
  -h, --help                     Displays this help.
  -v, --version                  Displays version information.
  --hl, --highlight <arguments>  First sign e.g. @ defines the delimiter.
                                 Requires 5 delimiters to be a valid expression.
                                 Example: @color@pre@regex@post@
  --cl, --colors                 Printing a list of available colors.
  --lg, --log <directory>        Saves raider log in the specified directory.

Arguments:
  settings                       Requires path to settings file.
Press <RETURN> to close this window...

Example:

python3 ./app/python/file-writer.py                                                  // setup the file writer application
python3 ./app/python/udp-receiver.py                                                 // create a udp socket do receive datagrams
vi ./app/settings/settings.json                                                      // modify settings files
./raider ABSOLUTE_PATH_TO/settings.json --highlight @light_cyan@\\t@Everyday@@       // build raider and start raider

About

Raider simple command line program to check a file for modifications, transmit or colorize file modifications.

License:MIT License


Languages

Language:C++ 99.3%Language:C 0.4%Language:Shell 0.1%Language:QMake 0.1%Language:Python 0.1%Language:Dockerfile 0.1%