[App_rpt-users] crontab schedule repeater announcements

DuaneVT . selkie2 at comcast.net
Tue Jan 24 21:41:24 EST 2017


I am having trouble getting crontab to schedule playing repeater
announcements. I have successfully recorded IAX speech to "prompt01.gsm".

 I created a script /etc/asterisk/scripts/announcements01.sh.

#!/bin/bash
# Script plays prompt01 audio files over local node (repeater)
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/usr/sbin/asterisk -rx "rpt localplay 42996 /etc/asterisk/scripts/prompt01"

Via terminal, I can enter "announcements01" and hear the node play the
repeater announcements.

My crontab -e is:
SHELL=/bin/bash
PATH=~/sbin:/bin:/usr/sbin:/usr/bin:/etc/asterisk/scripts
MAILTO=root
HOME=/

# I have tried all the following script treatments!
# m h  dom mon dow   command

* * * * * ./announcements01
* * * * * ./announcements01.sh
* * * * * . /announcements01.sh  # dot space  announcements01.sh
* * * * * announcements01.sh      # chmod u-x announcements01.sh (to make
executable)

-------------------------------------------------------------------------------------------------------------------
I have used the crontab to pass text to a file every minute..no problems;
so cron is running.
I am logged into ROOT.

Any suggestions as to HOW to get crontab to run my announcements01.sh
script would be MUCH appreciated!
73,
Duane KA1LM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.allstarlink.org/pipermail/app_rpt-users/attachments/20170124/1cc5915d/attachment.html>


More information about the App_rpt-users mailing list