procmail
[Top] [All Lists]

Re: running a recipe only during certain hours

1999-06-19 22:26:47
On 19 June 1999, David W. Tamkin <dattier(_at_)Mcs(_dot_)Net> wrote:
Liviu Daia wrote,

|     ... Or you can do it the other way around: save messages to a
| folder, and have a cron job forward them to your phone.

Problems:

1. They would not be forwarded as they arrived but accumulated for the
next run of the cron job.

    I'm tempted to consider this a feature. :-)

If someone pages ZC's friend in the dead of night, it might be an
emergency that can't wait for the next run of the cron job.

    Then he could either schedule cron jobs every 5 minutes (or sooner),
or tell his friends to actually use the phone...

2. The routine to save the messages to a folder would still need to
know the time of day, because messages that arrive during work hours
would not need to be spooled for the cron job that sends them to the
pager.

    No.  If the cron job is not scheduled to run during work hours, no
messages would get sent to the phone during that period.

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   Liviu(_dot_)Daia(_at_)imar(_dot_)ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc