Suggestion for autoupdate.f-prot

Dave Horsfall dave at ESI.COM.AU
Wed Jun 26 03:18:05 IST 2002


If -cron is specified, keep quiet if nothing was updated.  This is what
the shell version does.

Ugly, but does the job:

@@ -187,7 +188,8 @@
       }
     }
   } else {
-    print STDERR "File $FileToCheck is already up to date.\n" unless $quiet;
+    #print STDERR "File $FileToCheck is already up to date.\n" unless $quiet;
+    print STDERR "File $FileToCheck is already up to date.\n" unless ($quiet or $cron);
   }
 }


--
Dave Horsfall  DTM  VK2KFU  dave at esi.com.au  Ph: +61 2 9906-3377 Fx: 9906-3468
(Unix Guru) Pacific ESI, Unit 22, 8 Campbell St, Artarmon, NSW 2065, Australia



More information about the MailScanner mailing list