Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6.  
  7. while (<>) {
  8.  
  9.     if (m/Exception caught while executing command/) {
  10.         # skip the next few lines of the stacktrace
  11.         $_ = <>;
  12.         $_ = <>;
  13.         $_ = <>;
  14.         $_ = <>;
  15.         $_ = <>;
  16.         $_ = <>;
  17.         $_ = "";
  18.     }
  19.  
  20.     print;
  21. }