🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #12725

double mailings from calendar(1)

#12725
From: era
Date: Wed, 10 May 1989 04:13
18 lines
1289 bytes
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
Technical Details
Message-ID: <8905012230.AA00624@era.ucar.edu.UCAR.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!husc6!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!husc6!rice!sun-spots-request
From: era@niwot.ucar.edu
Newsgroups: comp.sys.sun
Subject: double mailings from calendar(1)
Keywords: Software
Message-ID: <8905012230.AA00624@era.ucar.edu.UCAR.EDU>
Date: 10 May 89 04:13:42 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 18
Approved: Sun-Spots@rice.edu
Original-Date: Mon, 1 May 89 16:30:10 MDT
X-Sun-Spots-Digest: Volume 7, Issue 279, message 20 of 23