tell me new groups, oh every 20 days
Dan Jacobson <[email protected]> Sun, 13 Apr 2003 07:35:34 +0800
| Newsgroups | gmane.network.noffle.user |
|---|---|
| Message-ID | <[email protected]> |
Gentlemen, let's stay informed of new groups, say in a mail message to
ourselves oh, every 20 days or so. Let's assume we don't want to use
our newsreader's newgroups presentation facilities, and instead want
notices mailed every 20 days.
It would be nice if there were $ noffle -g -cdate -20 where we could
list groups created less than 20 days ago. (I'm using find(1)
notation.) I would call it from anacron, oh every 18 days or
something. But no, there isn't yet.
So, ok, a possible first attempt at a once a month noffle check maybe is
#m=$(date +%Y-%m -d last\ month)
echo A month\'s of new newsgroups, with date of creation at front
m=$(date +%Y-%m)
noffle -g|awk '$7~/'$m'/{print (substr($7,9)),$1}'|sort -k 2
echo Not sure about the last days of the month, here executing from \
/etc/cron.monthly/
Hmmm, need a '-newer file" so we can check against a timestamp file so
we don't miss any between cracks, in case we take a 21 day vacation,
etc.
--
http://jidanni.org/ Taiwan(04)25854780
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com