Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2000 > December 2000

Sidebar 1: fcheck_file_support

Although the documentation states that FCheck supports the monitoring of individual files, this statement was left over from earlier documentation. This is clarified in the author's FAQ in the README file. The author, Michael Gumienny, mentions in the FAQ that the user can simulate single file support basically by defining the directory and excluding everything else. This is what the few lines of code below in the fcheck_file_support does. After placing the file in an appropriate place, such as /usr/local/bin/ and setting the execute bit, you can run the program with two parameters: the directory, and the file that you wish to monitor. The script will then print out a list of Exclusion statements that you can either redirect with append mode (>>) to the config file or paste into the file. Be sure that you also have the Directory = parameter before the Exclusion entries as well.

Although this script does the trick, it is not as granular as a complete integration could be. Additionally, any new files created in the directory will also set of the IDS...not a bad thing, but not the complete control that many of us would like to have. However, as I mentioned in the column, FCheck is still a very good thing to have in your toolbox.

#!/bin/bash
# fcheck_file_support

if echo $1 | grep -v \/$ >/dev/null
then
        dir="$1/"
else
        dir="$1"
fi

for i in ‘ls $1‘
do
        echo "Exclusion      = $dir$i" | grep -v "/$2"
done



MarketPlace

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Automate Software Builds with Visual Build Pro
Easily create an automated, repeatable process for building and deploying software.

WinDev 12 - Powerful IDE
Develop 10 times faster ! ALM, IDE, .Net, RAD, 5GL, Database, 5GL, 64-bit, etc. Free Express version

Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.

Wanna see your ad here?