Re: A Rather Basic Cron Question

2018-08-23 Thread Martin McCormick
Thanks to both Greg Wooledge and Reco. Reco writes: > Hi. > > On Thu, Aug 23, 2018 at 01:29:30PM -0500, Martin McCormick wrote: > > */5 5-12,13-23 * * * sh -c ". $HOME/.master.env; ./etc/do_mail" > ... > > In this case, no harm was done but shouldn't the cron > > runs have stoppe

Re: A Rather Basic Cron Question

2018-08-23 Thread Reco
Hi. On Thu, Aug 23, 2018 at 01:29:30PM -0500, Martin McCormick wrote: > */5 5-12,13-23 * * * sh -c ". $HOME/.master.env; ./etc/do_mail" ... > In this case, no harm was done but shouldn't the cron > runs have stopped at 12:00 and then resumed at 13:00? No, it should not. It's a class

Re: A Rather Basic Cron Question

2018-08-23 Thread Greg Wooledge
On Thu, Aug 23, 2018 at 01:29:30PM -0500, Martin McCormick wrote: > */5 5-23 * * * sh -c ". $HOME/.master.env; ./etc/do_mail" Note, the sh -c is redundant. The line is already passed to sh. You could just do: */5 5-23 * * * . ~/.master.env; ./etc/do_mail > > I modified it to read > > */5 5

A Rather Basic Cron Question

2018-08-23 Thread Martin McCormick
I use fetchmail every 5 minutes between 05:00 and 23:00 each day and I thought it might be good to suspend the fetches between 12:00 and 13:00 since I run a half-day backup during that time. The line currently reads */5 5-23 * * * sh -c ". $HOME/.master.env; ./etc/do_mail" I modi