Dan McGinn-Combs wrote: > As anyone ever done a script (of any kind -- I'm not particular) which will > suck in the following and spit out something RRDTool can eat? > > "6" "27Feb2002" "23:56:48" "hme1" "208.148.140.101" "log" "drop" > "45370" > "261" "27Feb2002" "23:56:52" "hme1" "208.148.140.101" "log" "drop" > "1262" >
On linux (part of GNU sh-utils) the date command will allow you to do this: date -d "27Feb2002 23:56:48" +%s and results in 1014872208 I'm sure there is some nifty ways to do this in perl of course but the above may be easier to understand. -ab -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
