[arm-allstar] problem running bash script
Doug Crompton
wa3dsp at gmail.com
Wed Oct 31 21:36:28 EDT 2018
Not knowing what these scripts do I would not be able to tell you why they
don't run. You are aware that we have playnews which we support and works
well. The howto is at hamvoip.org in the howto section. This is
programmable to play at a specified time. Usually you would not play a 20+
minute news file without breaks and at a specific time with pre warnings.
If ou download the playnews tarball it should be untarred in the
/etc/asterisk/lkocal directory. The /usr/local/sbin directory is for
hamvoip supplied scripts.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Wed, Oct 31, 2018 at 6:52 PM "David McGough via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
>
>
>
>
> Well, let's try this again. I got this bounced from my other email address
> for (spam??)
>
> Anyway, I have 3 bash script files that pertain to playing amatuer radio
> newsline.
> playnewsline
> yesnews.sh
> nonews.sh
>
> Each of these works fine if I putty in to the node and execute them (i.e.
> ./playnewsline)
>
> yesnews.sh creates a marker file called newsenable. When playnewsline runs,
> it checks to see if that file is there. If it isn't, playnewsline
> terminates without taking action. If the file exists, the newline files are
> played locally on the node.
>
> in my rpt.conf file, I have
>
> 82=cmd,/usr/local/sbin/say24time.pl 48013
> 232=cmd,/usr/local/sbin/playnewsline
> 230=cmd,/usr/local/sbin/nonews.sh
> 231=cmd,/usr/local/sbin/yesnews.sh
>
> If I send dtmf *82 on the handheld, I hear the time read back.
> If I send dtmf *232, *230, or *231, nothing happens.
>
> If I putty into the node and cd /usr/local/sbin and then manually
> ./yesnews.sh, or ./nonews.sh. or ./playnewsline, the scripts are executed
> with no problems.
>
> So what am I missing?
>
> _______________________________________________
>
> 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