[1883] in Athena Bugs

home help back first fref pref prev next nref lref last post

/usr/lib/crontab - everywhere up to 6.1B

daemon@ATHENA.MIT.EDU (qjb@ATHENA.MIT.EDU)
Sun Mar 12 22:58:58 1989

From: <qjb@ATHENA.MIT.EDU>
Date: Sun, 12 Mar 89 22:58:37 EST
To: bugs@ATHENA.MIT.EDU
Cc: rel-eng@ATHENA.MIT.EDU, qjb@ATHENA.MIT.EDU

The following line appears in the standard /usr/lib/crontab
(/srvd/usr/lib/crontab):

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)"


If you look carefully at this, you will notice that ======== and the
date are lost and the result of the find is put in findlog.  This can
be fixed by putting the closed parenthesis in the right place:


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"


To save you from too much trouble, I will mention that I moved the
parenthesis from after the word "findlog" to after "-print".

home help back first fref pref prev next nref lref last post