[Edinburgh-pm] meeting reminders

Murray perl at minty.org
Thu Feb 16 04:57:19 PST 2006

On Wed, Feb 15, 2006 at 11:31:41PM +0000, asmith9983 at gmail.com wrote:
> I think we should have a little competition to write the best one-liner perl 
> script to run  in a crontab to send a meeting reminder to the list on the 
> preceding Saturday. Assume it will run on a Linux system.

Okay, I'll bite with a starter for 10.  I forget the rules, modules
allowed? Mailing via exim okay [1] ?

15 9 * * 6 perl -e 'use Date::Manip;$t="2006-04-8";@d=ParseRecur( \
"0:1*2:3:0:0:0","2006-01-11",$t,DateCalc($t,"+ 1 month")); \
if (Date_Cmp($d[0],DateCalc($t,"+ 4 days"))==0){print( \
"Whiskey Wednesday!\n");}'|exim edinburgh-pm at pm.org

[1] Assuming the sender is subscribed to the list...

More information about the Edinburgh-pm mailing list