sendinpaths cronjob nitpicking

Matthias Meyser meyser at xenet.de
Wed Apr 13 07:27:05 UTC 2011


Hi All

on some OS (FreeBSD) renice emits a status report to STDERR.

If you use sendinpaths, which uses renice, in a cronjob
you get a emial every time with that report.

The following patch fixes that.

--- backends/sendinpaths.in,orig    2011-04-13 09:12:17.000000000 +0200
+++ backends/sendinpaths,in         2011-04-13 09:10:19.000000000 +0200
@@ -14,7 +14,7 @@
  defaddr="pathsurvey at top1000.org top1000 at anthologeek.net"

  # Renice to give other processes priority, since this isn't too important.
-renice 20 -p $$ > /dev/null
+renice 20 -p $$ > /dev/null 2>&1

  # Make report from (up to) $report days of dumps
  LOGS=`find . -name 'inpaths.*' ! -size 0 -mtime -$report -print`

Greetings
    matthias
-- 
Matthias Meyser        | XeNET Gesellschaft fuer Informations- und 
Kommunikationssysteme mbH
Tel.:  +49-5323-94018  | 38678 Clausthal-Zellerfeld, Burgstaetter Strasse 6
Fax:   +49-5323-94014  | Registergericht: Amtsgericht Braunschweig, HRB 110823
Email: Meyser at xenet.de | Geschaeftsfuehrer: Matthias Meyser



More information about the inn-workers mailing list