Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Report generation using perl script

by Utilitarian (Vicar)
on Jul 11, 2013 at 15:40 UTC ( #1043765=note: print w/replies, xml ) Need Help??


in reply to Report generation using perl script

tail -f never returns, I'm going to make a wild guess that you iterate over the log file, however if the stream (from tail -f) doesn't return, then the stats you're gathering are never finished so your "And finally print the report" block is never executed, just guessing mind.

You could repeatedly scan the file, or re-run the 2and finally" block after each line, but without the code it's hard to know what the issue is.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043765]
help
Chatterbox?
Corion orders some gifts online :)
[ambrus]: We're spending Christmas and the week after at my brother's place. First time ever, because the last four years they could came home instead.
[ambrus]: robby_dobby: wait what? Glasgow? isn't that one of the most boring towns ever?
[marto]: ambrus: no :)
[robby_dobby]: ambrus: Dunno. marto is from Glasgow. I'm in London and I say London is quite colourful, but boring :-)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-12-15 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (431 votes). Check out past polls.

    Notices?