era@niwot.ucar.edu (05/10/89)
A while back, I inquired as to whether anyone else had received double
mailings from the calendar(1) program running under 4.0. As soon as a
sun-spots reader reminded me that /usr/bin/calendar is a shell script, the
source of the problem was obvious.
If you have a server running YP, then /usr/bin/calendar is double-counting
everyone by concatenating YP passwd.byname and /etc/passwd. You can get
rid of the double mailings by making this change:
27c27
< $caldata |cat /etc/passwd - | grep -v '^[+-]' |\
---
> $caldata |cat /etc/passwd - | grep -v '^[+-]' | sort | uniq | \
__________
Ed Arnold * NCAR (Nat'l Center for Atmospheric Research) * Mesa Lab
PO Box 3000 * Boulder, CO 80307-3000 * 303-497-1253(w)
era@ncar.ucar.edu [128.117.64.4] * {ames,gatech,noao,uunet,...}!ncar!era