9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Leimbach <leimy2k@gmail.com>
To: Russ Cox <rsc@swtch.com>,
	Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] Re: patch auto-mails
Date: Thu,  8 Sep 2005 16:17:03 -0700	[thread overview]
Message-ID: <3e1162e6050908161714e99200@mail.gmail.com> (raw)
In-Reply-To: <ee9e417a050907203341475687@mail.gmail.com>

Jonesing isn't quite the word I'd use however I think I like this idea
just fine too...

On 9/7/05, Russ Cox <rsc@swtch.com> wrote:
> 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
>


  reply	other threads:[~2005-09-08 23:17 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   ` [9fans] " Russ Cox
2005-09-08 23:17     ` David Leimbach [this message]
     [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=3e1162e6050908161714e99200@mail.gmail.com \
    --to=leimy2k@gmail.com \
    --cc=9fans@cse.psu.edu \
    --cc=rsc@swtch.com \
    /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).