t-rex has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I have to find a string from a txt file which is constantly getting written by some other script ( basically script A logs its result in log.txt file which runs for hours) , now i have to read the last line of the log.txt file ( by tail or something) and report to some other script that if the run is taking place in proper manner or not. the log.txt has one pattern
TPSM seed 234B8177 pass 1 x 2 x 50 errors 0 pid 34562 rulefilecycl +e 0
the numbers above keeps on changing but the string pattern remains constant pls help as i am not understanding how to implement this
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Searching a string in running file
by haukex (Archbishop) on Jul 18, 2016 at 11:29 UTC | |
by t-rex (Scribe) on Jul 18, 2016 at 11:37 UTC | |
by haukex (Archbishop) on Jul 18, 2016 at 11:51 UTC | |
by t-rex (Scribe) on Jul 19, 2016 at 04:14 UTC | |
by Corion (Patriarch) on Jul 19, 2016 at 06:52 UTC | |
by haukex (Archbishop) on Jul 19, 2016 at 11:07 UTC | |
by Marshall (Canon) on Jul 19, 2016 at 16:15 UTC | |
|
Re: Searching a string in running file
by AnomalousMonk (Archbishop) on Jul 18, 2016 at 13:10 UTC |