innreport patch for Solaris 8 msgid based syslog

mki mki at primenet.com
Thu Jun 22 01:22:06 UTC 2000


Can someone please commit this patch to innreport? it addresses
the msgid based syslog output in solaris 8.  syslog output
now looks like:

Jun 18 11:31:14 tx innd: [ID 359755 news.error] innfeed! exit 1 elapsed 1 pid 27050

thanks!
-mohan

--- scripts/innreport       Wed Jun 21 17:57:37 2000
+++ innreport   Wed Jun 21 18:12:16 2000
@@ -381,7 +381,9 @@

   my $res;
   my ($day, $hour, $prog, $left) =
-    $_ =~ m/^(\S+\s+\S+) (\S+) \S+ (\S+): (.*)$/o;
+    $_ =~ m/^(\S+\s+\S+) (\S+) \S+ (\S+): \[ID \d+ \S+\] (.*)$/o;
+  ($day, $hour, $prog, $left) =
+    $_ =~ m/^(\S+\s+\S+) (\S+) \S+ (\S+): (.*)$/o unless $day;
   ($day, $hour, $prog, $left) =
     $_ =~ m/^(\S+\s+\S+) (\S+) \d+ \S+ (\S+): (.*)$/o unless $day;




More information about the inn-workers mailing list