|
|
1.1 root 1: PATH=/bin:/usr/bin
2: tmp=/tmp/cal$$
3: trap "rm $tmp /tmp/cal2$$; exit" 0 1 2 13 15
4: /usr/lib/calendar >$tmp
5: case $# in
6: 0)
7: egrep -f $tmp calendar;;
8: *)
9: sed '
10: s/\([^:]*\):.*:\(.*\):[^:]*$/y=\2 z=\1/
11: ' /etc/passwd \
12: | while read x
13: do
14: eval $x
15: if test -r $y/calendar; then
16: egrep -f $tmp $y/calendar 2>/dev/null > /tmp/cal2$$
17: if [ -s /tmp/cal2$$ ] ; then
18: < /tmp/cal2$$ mail $z
19: fi
20: fi
21: done
22: esac
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.