You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Dominic Reich 6396f68552
updates .gitignore
7 years ago
.gitignore updates .gitignore 7 years ago
LICENSE adds LICENSE and Makefile 7 years ago
Makefile updates Makefile (we don't need math library (LIBS=-lm)) 7 years ago
README.md Create README.md 9 years ago
counter.txt adds data files; removes reset.sh (now included in Makefile) 7 years ago
daten.txt adds data files; removes reset.sh (now included in Makefile) 7 years ago
main.cpp updates url on info page 7 years ago
version.h add reset.sh to reset data files // version upgrade 7 years ago

README.md

Fewo-Blacklist

A simple command line tool to manage a blacklist. The following two files need to exist in the (actual) working directory.

  • daten.txt - can be empty
  • counter.txt - write a single zero (0) into the first line

For example

Put the files into your home directory

You can run the tool in your home directory. It does not care where the binary file is, as long as you are in your home directory.

Put the files into a separate directory under your home directory

If you put the two files into .fewo in your home directory, you have to go into that directory first and run the command then. It does not care where the binary file is, as long as you are in that specific directory.

Change the source code to use absolute paths

Open main.cpp and re-define the filename of those two files (that information is on line 60 and 61).

  const char * cFilename = "daten.txt";
  const char * cCounter  = "counter.txt";

You can easily change this to something else and compile again.

  const char * cFilename = "/var/lib/blacklist/daten.txt";
  const char * cCounter  = "/var/lib/blacklist/counter.txt";

Others

Feedback and suggenstions welcome!