From: Koncept Date: 2004-02-29T03:24:46+09:00 Subject: Re: (noob) need help parsing Apache log file Mark. One other thing.... If the script is run without *sudo* permissions, this is the error thrown. How do I catch something like this and present a nicer message to the user? logReader.rb:29:in `initialize': Permission denied - /var/log/httpd/access_log (Errno::EACCES) from logReader.rb:29:in `open' from logReader.rb:29 -- Koncept << "Contrary to popular belief, the most dangerous animal is not the lion or tiger or even the elephant. The most dangerous animal is a shark riding on an elephant, just trampling and eating everything they see." - Jack Handey