[Remind-Fans] run-every-n-minutes.pl (was Re: Poll: Anyone using ONCE?)

Dianne Skoll dianne at skoll.ca
Mon Jul 8 12:06:41 EDT 2024


On Sun, 7 Jul 2024 01:45:11 -0400
Michael DeBusk via Remind-fans <remind-fans at lists.skoll.ca> wrote:

> On Sat, Jul 6, 2024 at 11:26 PM Dianne Skoll via Remind-fans
> <remind-fans at lists.skoll.ca> wrote:

> > I wrote a separate program called "run-every-n-minutes.pl" that I
> > use for cron-type stuff where my computer is not always on.

> I currently run from cron a script that updates a database every
> morning and I have to run the script by hand if my computer was off at
> the time. I'd love to see your program despite my complete ignorance
> of perl.

OK, so I spent a bit of time tidying up and documenting my script.
While there are cron variants that can handle machines that aren't on
24x7, I like my script because it has a few other nice features like
logging to a file with timestamps, not running a command unless a prerequisite
command succeeds, and a few others.

You can clone it from: https://git.skoll.ca/Skollsoft-Public/run-every-n-minutes.git

Building is the usual:

         perl Makefile.PL && make && sudo make install

Regards,

Dianne.





More information about the Remind-fans mailing list