Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Search logs with crontab

by toolic (Bishop)
on Nov 18, 2013 at 16:17 UTC ( #1063145=note: print w/replies, xml ) Need Help??

in reply to Search logs with crontab

Your substitution operates on the contents of the $_ variable, but then you never do anything with that (potentially) modified variable. Did you not show a complete code example? I expected to see a print somewhere.

Replies are listed 'Best First'.
Re^2: Search logs with crontab
by hmb104 (Sexton) on Nov 18, 2013 at 17:03 UTC

    I was missing the file handler to write to the file and I got it resolved. But now my script works only on old logs. I want to do something with my current log file that are running 24/7.

    I want not to search from the top of the file again if I already did 2 hours a go, any ideas?

Re^2: Search logs with crontab
by hmb104 (Sexton) on Nov 18, 2013 at 16:23 UTC

    That is my problem, I want to know how to replace the specified keyboard in that line I hold in my special variable?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1063145]
[erix]: who can explain to me why Primary Key Fragmentation (whatever it may be) might be a problem?
[jedikaiti]: Pretty!
[erix]: ( TBH, I think it's a load of bull -- but maybe I'm mistaken )
[erix]: Hey that's Hungary - wave down ambrus and tell him to reboot his systems!
[choroba]: it might be a problem if you expect to reach the maximal possible value soon without squashing the ids
[erix]: that's really impossible with bigint
[erix]: and the site is still only 'hopefully' active :)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-06-23 15:42 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (550 votes). Check out past polls.