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 *970PATH=/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@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_ and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"rpt-users
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.