Jan
05
2006
RSS feed for crash reports
Posted by: Kevin Ballard in Programming, Ruby, Web, tags: crashreporter, NetNewsWire, rss, RubyInspired by a script mentioned on ranchero.com, I wrote a ruby script that generates an RSS feed for all the Crash Reporter logs on your machine. Just create a New Special Subscription in NetNewsWire, point it at the script, and you’re all set.
Entries (RSS)
January 6th, 2006 at 11:48 am
Very nice! Thanks for sharing this.
January 6th, 2006 at 12:56 pm
spiffy neat. definitly add this script as well. so much easier than trying to remember to look at all those places.
January 17th, 2006 at 1:21 am
I get this error:
/Users/joseman/Prog/Scripts/showcrashreports.rb
/usr/lib/ruby/1.8/date/format.rb:236:in `dup’: can’t dup NilClass (TypeError) from /usr/lib/ruby/1.8/date/format.rb:236:in `_parse’ from /usr/lib/ruby/1.8/parsedate.rb:9:in `parsedate’ from /usr/lib/ruby/1.8/time.rb:137:in `parse’ from /Users/joseman/Prog/Scripts/showcrashreports.rb:38 from /Users/joseman/Prog/Scripts/showcrashreports.rb:34:in `each’ from /Users/joseman/Prog/Scripts/showcrashreports.rb:34 from /Users/joseman/Prog/Scripts/showcrashreports.rb:30:in `each’ from /Users/joseman/Prog/Scripts/showcrashreports.rb:30
January 17th, 2006 at 2:18 am
buscarini – Sounds like your crash log format is different than mine. What OS are you running? And could you possibly supply me with one of your crash reports so I could try and see what’s going on? You can email me at [kevin@sb.org].
March 22nd, 2006 at 9:32 pm
How do you make a Ruby script work with NetNewsWire? I gather it has to be executable (compiled?) but how do you make it executable? It seems like such a simple question, but I’ve been 100% unsuccessful in finding a simple answer.
March 23rd, 2006 at 11:47 am
Doesn’t require any “compilation” (you can’t compile ruby scripts). In any case, to make it executable you open up Terminal.app, type `chmod a+x ` (without the backticks), and drag the script into the window. Then hit return.
May 2nd, 2006 at 7:36 am
hi kevin can I use this script only with NetNewsWire ? what about other rss news readers ?
May 2nd, 2006 at 9:21 am
You can use it with other newsreaders if they support executing shell scripts and interpreting the results as a feed. I don’t know offhand of any newsreaders but NNW that do it (but that’s because I don’t use any other newsreaders).
March 18th, 2008 at 11:10 am
Hi,
if you are getting this error:
/usr/lib/ruby/1.8/date/format.rb:236:in `dup’: can’t dup NilClass (TypeError)
add this line:
break unless scanner1
at line 38, after the
scanner.scan_until(/Date\/Time:\s+(.*)$/)
It will work around strange Crash reports like some generated by RubyCocoa apps, like Bongo.app.
I’ve sent this to Kevin, I’m posting here also so that Google can find it.
Best regards,
March 18th, 2008 at 11:12 am
Ok,
the last comment was messed up.
The new line should be:
break unless scanner [1]
(remove the space between scanner and [)
Best regards,