[arm-allstar] Help with Script
Doug Crompton
wa3dsp at gmail.com
Tue Apr 14 12:55:16 EDT 2020
Darrell,
What is the object of this script. It seems a little convoluted to me.
What is it you want to do with alerts? Why the crontab statement and why
the constant reloading of rpt.conf? This is not a recommended way to do
things.
*73 Doug, WA3DSP*
*http://wa3dsp.org <http://wa3dsp.org>*
On Tue, Apr 14, 2020 at 10:36 AM "Darrell Black via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> I know this has been answered 1000's times but it just does not seem to
> work for me. Below is my simple script.
>
> #!/bin/bash
> crontab /etc/asterisk/local/cron_skywarn.txt
> \cp -f /etc/asterisk/rpt_skywarn.conf /etc/asterisk/rpt.conf
> sleep 1
> sudo asterisk -rx "rpt reload"
> sleep 5
> sudo asterisk -rx "rpt localplay 50165 /etc/asterisk/sounds/wx"
>
>
> I have verified that the crontab is replaced and that works
> I have verified that the rpt.conf is replaced with the new file
>
> What is not happening is I do not think the rpt.conf is being read in.
>
> The file is replaced however the CT does not change. I have the following:
> NORMAL
>
> ; COURTESY TONE MAPPING
> unlinkedct=ct1
> remotect=ct3
> linkunkeyct=ct8
>
> SKYWARN
>
> unlinkedct=ct5
> remotect=ct5
> linkunkeyct=ct5
>
> ct5 = iSW
>
> ct5 is never used.....Note the repeater is ALWAYs linked to a hub.
>
> Any help please
> --
>
> Darrell Black
>
> (517) 917-2226
> GigaHacker at gmail.com
> http://www.linkedin.com/in/darrellblack
>
>
> 73 de W8DSB
> "In God we trust, all others we monitor"
>
> GMRS WRDE739
> _______________________________________________
>
> 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/4 web page - http://hamvoip.org
>
More information about the ARM-allstar
mailing list