[arm-allstar] Cron & SMS Screw Up....

Doug Crompton wa3dsp at gmail.com
Thu May 9 23:50:56 EDT 2019


Just to further comment on the use of the MAILTO directive in cron. No
hamvoip installation has mail unless you activate it and then only if it is
available to you from a server like gmail as described in the howto. There
is no reason in most all cases to have email sent from cron jobs given the
fact you do not have it to begin with without mail activated which is the
general case in the Allstar code. It is actually a relic of Linux and a
nuisance to have email sent every time a cron job hits especially when it
is at the frequency of many of the crons we use. The log (journalctl)
generally gives all the information you would need to check cron status or
errors.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

On Thu, May 9, 2019 at 1:12 AM Doug Crompton <wa3dsp at gmail.com> wrote:

> I updated the mail and SMS howto at hamvoip.org to reflect the need to
> stop cron generated email and how to do it. Refresh your browser on the
> page to see the change.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
> On Wed, May 8, 2019 at 3:37 PM "John via ARM-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
>> Thanks, Doug. re-cron-izing now....
>>
>> J.
>>
>> On Wed, May 8, 2019 at 2:26 PM "Doug Crompton via ARM-allstar" <
>> arm-allstar at hamvoip.org> wrote:
>>
>> > John,
>> >
>> >  Yes the AutoSky entry must be in there if you want it to work.
>> >
>> > */4 * * * * /usr/local/bin/AUTOSKY/AutoSky
>> >
>> > Adding the MAILTO="" will cron from sending mail.  If you want to see if
>> > autosky is running every four minutes after entering it in cron do
>> > journalctl -f  and watch the messages.  Control C to exit.
>> >
>> >
>> > *73 Doug*
>> >
>> > *WA3DSP*
>> >
>> > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>> >
>> > On Wed, May 8, 2019 at 3:20 PM "John via ARM-allstar" <
>> > arm-allstar at hamvoip.org> wrote:
>> >
>> > > Thanks, Doug & David. I just saw a cron entry and deleted
>> it...(before I
>> > > read your message, Doug).  Was the AutoSky entry I deleted something I
>> > need
>> > > to resurrect?
>> > >
>> > > J.
>> > >
>> > > On Wed, May 8, 2019 at 1:54 PM "Doug Crompton via ARM-allstar" <
>> > > arm-allstar at hamvoip.org> wrote:
>> > >
>> > > > John,
>> > > >
>> > > >  Had the same problem here awhile ago and after some searching this
>> was
>> > > the
>> > > > best solution -
>> > > >
>> > > > Add the MAILTO="" as the first line in cron
>> > > >
>> > > > MAILTO=""
>> > > > # Do not remove the following line
>> > > > # required for lsnodes and allmon
>> > > > 15 03 * * * cd /usr/local/sbin; ./astdb.php cron >/dev/null 2>&1
>> > > > .....
>> > > > .....
>> > > >
>> > > >
>> > > >
>> > > > *73 Doug*
>> > > >
>> > > > *WA3DSP*
>> > > >
>> > > > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio
>> >*
>> > > >
>> > > > On Wed, May 8, 2019 at 2:04 PM "John via ARM-allstar" <
>> > > > arm-allstar at hamvoip.org> wrote:
>> > > >
>> > > > > I was busy patting myself on the back for getting mail setup on my
>> > node
>> > > > > when I started getting cron email every four minutes indicating
>> that
>> > > > > "AutoSky Xresult is 0." The message is To: root with BCC: me. I'm
>> > > > guessing
>> > > > > while trying to troubleshoot why SMS was not working, I created an
>> > > > > unintended cron entry...  how do I stop the email flood?
>> > > > >
>> > > > > John
>> > > > > _______________________________________________
>> > > > >
>> > > > > ARM-allstar mailing list
>> > > > > ARM-allstar at hamvoip.org
>> > > > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>> > > > >
>> > > > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
>> > > > >
>> > > > _______________________________________________
>> > > >
>> > > > ARM-allstar mailing list
>> > > > ARM-allstar at hamvoip.org
>> > > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>> > > >
>> > > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
>> > > >
>> > > _______________________________________________
>> > >
>> > > ARM-allstar mailing list
>> > > ARM-allstar at hamvoip.org
>> > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>> > >
>> > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
>> > >
>> > _______________________________________________
>> >
>> > ARM-allstar mailing list
>> > ARM-allstar at hamvoip.org
>> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>> >
>> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
>> >
>> _______________________________________________
>>
>> ARM-allstar mailing list
>> ARM-allstar at hamvoip.org
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>>
>> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>>
>


More information about the ARM-allstar mailing list