Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

small faxcron fixes



Faxcron was sometimes bothering with minor error messages when
grep'ing directories. This diff made it shut up.

--- faxcron     Sat Mar 21 20:48:24 1998
+++ faxcron.old Sat Mar 21 20:21:50 1998
@@ -38,7 +38,7 @@

 AGEINFO=30                     # purge remote info after 30 days inactivity
 AGELOG=30                      # keep log info for last 30 days
-AGERCV=7                       # purge received facsimile after 7 days
+AGERCV=7                       # purge received facsimile after 2 days
 AGETMP=1                       # purge orphaned temp files after 1 day
 FAXUSER=fax                    # owner of log files
 LOGMODE=0644                   # mode for log files
@@ -428,7 +428,7 @@
 #
 # Purge old stuff from the temp directory.
 #
-find tmp -mtime +$AGETMP -print >$JUNK
+find tmp -type f -mtime +$AGETMP -print >$JUNK
 if [ -s $JUNK ]; then
     echo "Purge tmp files older than $AGETMP days:"
     for i in `$CAT $JUNK`; do
@@ -445,7 +445,7 @@
 #
 # Note destinations whose jobs are currently being rejected.
 #
-find info cinfo -type f -newer $LAST -print 2>/dev/null >$JUNK
+find info cinfo -newer $LAST -print 2>/dev/null >$JUNK
 if [ -s $JUNK ]; then
        echo "Destinations being rejected (added since $LASTRUN):"
        $GREP "^rejectNotice:" `$CAT $JUNK` | $AWK -F: '



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services