[1314] in Athena Bugs
/usr/lib/crontab bug
daemon@ATHENA.MIT.EDU (Daniel I. Applebaum)
Sat Nov 5 18:20:11 1988
From: Daniel I. Applebaum <danapple@FLOTSAM.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: paul@ATHENA.MIT.EDU, purcell@MEDIA-LAB.MEDIA.MIT.EDU,
Date: Sat, 05 Nov 88 18:19:13 EST
In the 6.0C version of /usr/lib/crontab, the "find" entry has a minor,
but possibly annoying bug. The current entry reads:
40 4,22 * * * root csh -fc "(echo ' ========'; date; cd /site;find .
-xdev '(' -name '#*' -o -name '.#*' -o -name '*~' -o -name core ')' -a
-atime +3 -a -exec rm -f {} ';' -print >>& /usr/adm/findlog)"
Note the last ) is at the end of the line. By placing it there, the
echo and date statements don't get added to the findlog. The intent of
the ), I presume, is to group the echo, date, and find statements
together and send their collective output to /usr/adm/findlog. To
accomplish this, the ) should immediately follow the -print:
40 4,22 * * * root csh -fc "(echo ' ========'; date; cd /site;find .
-xdev '(' -name '#*' -o -name '.#*' -o -name '*~' -o -name core ')' -a
-atime +3 -a -exec rm -f {} ';' -print ) >>& /usr/adm/findlog"
Dan.