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