|
|
|
|

TxtDiff is a decision program. The
program checks the specified location in side the test file, It makes
sure that DO the string has changed or not,
change means alarm and no change means normal. In case of the string is
different from the compare-txt, parameter of Err-Proc
will be submited. The compare resault will be saved in log file. In
case of the status is return to normal , parameter of Ret-Proc
will be submited. Inverse parameter will make
the resualt inverse, means change is normal and no change is alarm
status.
For two files compare case, the program will compare the same locations
of the two files.First line and word No. was defined by parameters W
and L, and every loop the line number will
add by one. The program will copy file1 to file2
before exit.
Err-Proc and Ret-Proc
must executable. For normal case, Err-Proc
will be submited only first time the status changes from normal to
alarm. In case of Ret-Proc was defined as -1,
means submited Err-Proc evey time while alarm
was happened.
The standard manner used to invoke is:
TxtDiff [i|I] [t|T=compare-txt] l|L=Line-No. w|W=Word-No compare-file Err-Proc Ret-Proc [Log-file].
for one file with compare-txt compare.
TxtDiff l|L=Line-No. w|W=Word-No x|X=YY compare-file-1 compare-file-2 Err-Proc Ret-Proc [Log-file].
for two files compare.
bravenet.com