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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.