[App_rpt-users] crontab schedule repeater announcements

David KE6UPI dshaw at ke6upi.com
Fri Jan 27 15:41:58 UTC 2017


Hello Duane, I would try this in crontab -e

* * * * * /etc/asterisk/scripts/announcements01.sh

David

On Fri, Jan 27, 2017 at 6:43 AM, DuaneVT . <selkie2 at comcast.net> wrote:

> I finally got to the root mail to see what errors crontab was finding with
> running this script. I have crontab calling ann01.sh script and the script
> is running.
> The ann01.sh and prompt01.gsm files are in /etc/asterisk/scripts. Both
> files and the scripts folder are set as executable.
> The ann01.sh script is as below:
>
> #!/bin/bash
> # Script plays prompt01 audio files over local node (repeater)
> # Runs "localplay prompt01.gsm via IAX or radio *970
>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
> :/bin:/usr/sbin/asterisk/
>
> /usr/sbin/asterisk -rx "rpt localplay /etc/asterisk/scripts/prompt01"  #
> error "can't open ann01"
>
>
> sudo asterisk -rx "rpt fun 42996 *970"                             #
> error "can't open ann01"
> asterisk -rx "rpt fun 42996 *970"                                      #
> error "can't open ann01"
> /usr/sbin/asterisk -rx "rpt fun 42996 *970"                       # error
> "can't open ann01"
> echo "Hello World" >> test                                               #
> runs fine!
>
> ---------------------------------------------
> I can hit *970 on the radio and hear the localplay run the prompt01 speech.
> I can type ann01 via ssh and the prompt01 is heard.
> I just can't get the ann01.sh script to run from cron!
>
> Help!
> Duane KA1LM
>
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at lists.allstarlink.org
> http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
>
> To unsubscribe from this list please visit http://lists.allstarlink.org/
> cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of
> the page. Enter your email address and press the "Unsubscribe or edit
> options button"
> You do not need a password to unsubscribe, you can do it via email
> confirmation. If you have trouble unsubscribing, please send a message to
> the list detailing the problem.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20170127/32284b3e/attachment.html>


More information about the App_rpt-users mailing list