i have two scripts the first one reads from log files
(logs are created by a server i have no control over the logs creation its done periodically depending on the traffic) it splits the log data according to the time it was created and put it in four directories (one for each month - four months of data) then id deletes the initial log,
the second scripts reads these files and sorts them and then uploads it to a database then archives them.
the problem that im having is, in case while splitting the data for some reason if the script stops and it had to be started again. i need a way to start it without making duplicate log data for the once already created.
can anyone help me out on this please??
im new to perl so if someone can show me a example i would appropriate it.
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.