Don't ask to ask, just ask | |
PerlMonks |
Getting Log File for Current/Last Weekby LostS (Friar) |
on Nov 14, 2002 at 14:09 UTC ( [id://212839]=perlquestion: print w/replies, xml ) | Need Help?? |
LostS has asked for the wisdom of the Perl Monks concerning the following question:
OK here is what I am doing. I have WebAlizer and I need to run it against many server's against the logs. Now I wrote this:
Now that was to just get the initial start of all the logs. Now I need to modify it to get the last log. My log files are Weekly or Monthly. So like my logs will look like nc0211.log for monthly and nc021103.log for weekly. Can anyone help me determine how to grep/read only the last log. I would say the last modified but by time the script runs the server might have started a new one. Any suggestions?? ----------------------- Billy S. Slinar Hardtail - Guildless Datal Ephialtes - Guildless RallosZek.Net Admin/WebMaster
Back to
Seekers of Perl Wisdom
|
|