From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Wojtek Walczak Newsgroups: gmane.emacs.help Subject: Re: Is there a CALENDER reminder in emacs or a gnu tool or in unix Date: Sat, 28 Sep 2002 21:26:13 +0000 (UTC) Organization: tp.internet - http://www.tpi.pl/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1033249749 13058 127.0.0.1 (28 Sep 2002 21:49:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Sep 2002 21:49:09 +0000 (UTC) Return-path: Original-Received: from hermes.netfonds.no ([80.91.224.195]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17vPM5-0002uA-01 for ; Sat, 28 Sep 2002 23:42:34 +0200 Original-Received: from monty-python.gnu.org (monty-python.gnu.org [199.232.76.173]) by hermes.netfonds.no (8.12.1/8.12.1) with ESMTP id g8SLaq8s008571 for ; Sat, 28 Sep 2002 23:36:52 +0200 (CEST) Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17vPGb-0000Ep-00; Sat, 28 Sep 2002 17:36:49 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail Original-Newsgroups: gnu.emacs.help,gnu.utils.help,comp.unix.shell,comp.unix.programmer Original-Followup-To: comp.unix.programmer Original-Lines: 35 Original-NNTP-Posting-Host: pb135.kepno.sdi.tpnet.pl Original-X-Trace: news.tpi.pl 1033248373 2878 213.25.218.135 (28 Sep 2002 21:26:13 GMT) Original-X-Complaints-To: usenet@tpi.pl Original-NNTP-Posting-Date: Sat, 28 Sep 2002 21:26:13 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Original-Xref: nntp.stanford.edu gnu.emacs.help:105462 gnu.utils.help:4047 comp.unix.shell:133512 comp.unix.programmer:143462 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: X-MIME-Autoconverted: from 8bit to quoted-printable by hermes.netfonds.no id g8SLaq8s008571 Xref: main.gmane.org gmane.emacs.help:2007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2007 Dnia 28 Sep 2002 12:06:21 -0700, gnuist006 napisa=B3(a): > Suppose I want to be reminded in emacs or on shell window on a certain = day > two day before and then 1hr before it? Maybe it'll help you. It's untested, I wrote it two minutes ago ;) You need atd and perl. On my system at sends results of its work to a mailbox, so I'm finding reminding notes on there. Code is here: It asks you about three things: 1) time 2) date 3) task It calcuates everything by its own. How does it looks?=20 % perl reminder.pl Hour (hh:mm): 20:30 Date (mm/dd/yy): 12/31/2002 Task: c.u.p meeting!!! warning: commands will be executed using /bin/sh job 23 at 2002-12-29 20:30 warning: commands will be executed using /bin/sh job 24 at 2002-12-31 19:30 % _ Real date of meeting is 20:30, 12/31/2002. So, as you wanted, you'll be reminded on 20:30, 2002-12-29 -- two days before and on 19:30, 2002-12-31 -- an hour before HTH :) --=20 [ Wojtek gminick Walczak ][ http://gminick.linuxsecurity.pl/ ] [ gminick (at) hacker.pl ][ gminick (at) underground.org.pl/ ]