Quantcast
Channel: EmotiCODE - Snippets and Source Code Search Engine
Viewing all articles
Browse latest Browse all 146

Ruby - Rollup Count of Events

$
0
0
if ARGV[0] == nil then puts "SYNTAX: smtp_errors.rb " exit end log = ARGV[0] offenders = Hash.new(0) File.open(log,"r").each do |line| if line =~ /SMTP error/ then addy = line ...

Viewing all articles
Browse latest Browse all 146

Trending Articles