chkin has asked for the wisdom of the Perl Monks concerning the following question:
Hello Folks,
Iam caught up in a tough situation with time based comparison of two files.
Eg: File1: 117-0,1161310019795596,939,8,2000,5340,8888 119-0,1181310019795766,939,8,2000,5340,8888 120-0,1201310019795931,939,8,2000,5340,8888 File2: 222-0,1161310019795596,939,8,2000,5340,8888 333-0,1181310019795766,939,8,2000,5340,8888 120-0,1201310019795931,939,8,2000,5340,8888
Logic is to compare the two files (continuously updated). If a difference if found store the results in a temp file and set a flag (add a extra column in temp file say F) continously scan the files and update the flag if a match is found (change flag from "F" to "P") . However , if the record fails to match till 10 mins . generate alert.
Would highly appreciate your help. Thanks in Advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching two files real time
by cjb (Friar) on Jul 27, 2011 at 13:48 UTC | |
|
Re: Matching two files real time
by Anonymous Monk on Jul 27, 2011 at 13:47 UTC | |
|
Re: Matching two files real time
by zentara (Cardinal) on Jul 27, 2011 at 17:17 UTC | |
|
Re: Matching two files real time
by ww (Archbishop) on Jul 27, 2011 at 16:05 UTC | |
|
Re: Matching two files real time
by jpl (Monk) on Jul 27, 2011 at 17:42 UTC |