[Remind-Fans] A complicated reminder

Paul Smith phhs80 at hotpop.com
Tue Jul 13 15:53:33 EDT 2004


Brian Medley wrote:
>>>>>> there a way of doing it automatically without having to 
>>>>>> comment (and uncomment) the reminder line in the file 
>>>>>> .reminders? Any ideas?
>>> Is this on a unix box?  If so, I have a script that may be 
>>> modifiable to reach your goal.
>> 
>> Thanks, Brian. Yes, it is a Unix box.
> 
> I have the following in my crontab:

Thanks, Brian, for your script. Meanwhile, I was able to produce the 
following perl script, which runs at startup and solves my problem:

#!/usr/bin/perl
use warnings;
use strict;

$a = 0;

( $^I, @ARGV ) = ( '.bak', '/home/paulus/.reminders' );
while ( <> ) {
   if ($a == 1) {
     s/^#//;
     print;
     $a = 0;
   }
   elsif (/Zyloric/) {
     s/^#//;
     print;
     $a = 1;
   }
   else {
     print;
   }
}




More information about the Remind-fans mailing list