On Fri, 26 Apr 2002, Reidar Nordin wrote:
Date: Fri, 26 Apr 2002 09:50:52 +0200
From: Reidar Nordin <reidar(_at_)tedk(_dot_)com>
To: uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il
Cc: Procmail <procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE>
Subject: Re: How to set date/time in .procmailrc
Hi!
I do not have possibility to use at!
at: can't create a job for you
Is there another way?
Yes, of course, but, I have feeling that we start overflow into the
Shell-Script-Mailing-List. Anyway, increase the sleeping argument and
use it in infinite loop. Or do something like this:
while true
do
T=`date '+%H'`
case $T in
0[0-7]|1[6-9]|2[0-4])
DO IT ...
DO IT ...
DO IT ...
*)
sleep 3600
;;
esac
done
(Note, there is no ";;" in the first case)
Other way; you do not want to remove the procmailrc, but what about
removing only one module?
:0 .....
* THE AUTOREPLAY CONDITION.....
{ INCLUDERC=/other/procmail/module }
Now, you can swap between two modules. (Maybe yours .login shell
will copy the work-time module and overwrite the /other/procmail/module
and your .logout will copy the auto-replay back to the module)
Bye,
Udi
\\Reidar
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail