On Thu, 07 Oct 2004 12:37:22 +1000, Andrew Pam wrote: >> >> How about this: >> >> ($sec, $min, $hour, $day) = localtime(); > > Sorry, to get the equivalent of "date +%F" you actually need this: > > my ($sec, $min, $hour, $day, $mon, $year) = localtime(); > Hope that helps, > Andrew
Thanks everyone. Think I finally got it using what Andrew suggested. If anyone would like a copy of the script let me know. When run it currently goes through all log files to find any records for the prior 5 minute period (e.g. if it's 12:05 it searches on 12:00 -> 12:04, if it's 11:03 it searches on 10:55 -> 10:59) then dumps the average number of connections and the total number of records found. I'm using this with net-snmp and cacti to graph our mail servers load. So far so good. Thanks again, Ed McLain.
