From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: [9fans] Re: patch auto-mails
Date: Wed, 7 Sep 2005 23:33:27 -0400 [thread overview]
Message-ID: <ee9e417a050907203341475687@mail.gmail.com> (raw)
In-Reply-To: <ee9e417a05090708194a9420b3@mail.gmail.com>
If you are jonesing for automatically-generated chatter,
you can try running this via cron:
% cat /cron/$user/cron
X * * * * yoursys sourcesmail
%
(where X is your favorite random number between 0 and 59)
% cat $home/bin/rc/sourcesmail
#!/bin/rc
d=`{date -n}
sleep 1
if(! test -f $home/lib/sourcesmailtime)
touch $home/lib/sourcesmailtime
9fs sources
newer=`{
ls -rt /n/sources/extra/changes/*/* $home/lib/sourcesmailtime |
sed -n '/sourcesmailtime/,$p' | grep -v sourcesmailtime
}
if(~ $#newer 0)
exit 0
for(i in $newer)
mail -s $i `{cat /dev/user} <$i
touch -t $d $home/lib/sourcesmailtime
%
Russ
next prev parent reply other threads:[~2005-09-08 3:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-07 15:15 [9fans] [patch] sorry: vncconnect patch-log
2005-09-07 15:19 ` [9fans] patch auto-mails Russ Cox
2005-09-07 20:48 ` David Leimbach
2005-09-07 22:22 ` LiteStar numnums
2005-09-08 3:33 ` Russ Cox [this message]
2005-09-08 23:17 ` [9fans] " David Leimbach
[not found] ` <000001c5b3ef$43a85c70$14aaa8c0@utelsystems.local>
2005-09-08 5:32 ` [9fans] " "Nils O. Selåsdal"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ee9e417a050907203341475687@mail.gmail.com \
--to=rsc@swtch.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).