<div dir="auto">Your crontab thinks your script is located in /root. Your script is located in /etc/asterisk/scripts/####.<div dir="auto">you need to add the complete directory for the crontab to locate the script. <br><div dir="auto"><br><br><div data-smartmail="gmail_signature">AB3AA Brian</div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 24, 2017 9:50 PM, <<a href="mailto:app_rpt-users-request@lists.allstarlink.org">app_rpt-users-request@lists.allstarlink.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send App_rpt-users mailing list submissions to<br>
<a href="mailto:app_rpt-users@lists.allstarlink.org">app_rpt-users@lists.<wbr>allstarlink.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/<wbr>cgi-bin/mailman/listinfo/app_<wbr>rpt-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:app_rpt-users-request@lists.allstarlink.org">app_rpt-users-request@lists.<wbr>allstarlink.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:app_rpt-users-owner@lists.allstarlink.org">app_rpt-users-owner@lists.<wbr>allstarlink.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of App_rpt-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. testing (Bryan Fields)<br>
2. testing ohnosec (Bryan Fields)<br>
3. test (Steve Zingman)<br>
4. Test (Steve Zingman)<br>
5. crontab schedule repeater announcements (DuaneVT .)<br>
6. Re: crontab schedule repeater announcements (Apu)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Tue, 24 Jan 2017 18:45:54 -0500<br>
From: Bryan Fields <<a href="mailto:Bryan@bryanfields.net">Bryan@bryanfields.net</a>><br>
To: <a href="mailto:app_rpt-users@lists.allstarlink.org">app_rpt-users@lists.<wbr>allstarlink.org</a><br>
Subject: [App_rpt-users] testing<br>
Message-ID: <<a href="mailto:17c773f2-cfea-506e-5a81-8e2bf9131fee@bryanfields.net">17c773f2-cfea-506e-5a81-<wbr>8e2bf9131fee@bryanfields.net</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
please ignore<br>
<br>
--<br>
Bryan Fields<br>
<br>
<a href="tel:727-409-1194" value="+17274091194">727-409-1194</a> - Voice<br>
<a href="http://bryanfields.net" rel="noreferrer" target="_blank">http://bryanfields.net</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 24 Jan 2017 20:03:46 -0500<br>
From: Bryan Fields <<a href="mailto:Bryan@bryanfields.net">Bryan@bryanfields.net</a>><br>
To: APP RPT <<a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a>><br>
Subject: [App_rpt-users] testing ohnosec<br>
Message-ID: <<a href="mailto:53004182-6858-0f7a-a123-721a86aebdae@bryanfields.net">53004182-6858-0f7a-a123-<wbr>721a86aebdae@bryanfields.net</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
ignore please<br>
<br>
<br>
--<br>
Bryan Fields<br>
<br>
<a href="tel:727-409-1194" value="+17274091194">727-409-1194</a> - Voice<br>
<a href="http://bryanfields.net" rel="noreferrer" target="_blank">http://bryanfields.net</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 24 Jan 2017 20:33:09 -0500<br>
From: Steve Zingman <<a href="mailto:szingman@msgstor.com">szingman@msgstor.com</a>><br>
To: "<a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a>" <<a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a>><br>
Subject: [App_rpt-users] test<br>
Message-ID: <<a href="mailto:15c33849-4f11-a047-abfb-5bd144768140@msgstor.com">15c33849-4f11-a047-abfb-<wbr>5bd144768140@msgstor.com</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
Please ignore<br>
<br>
--<br>
"Real programmers us vi, that's why I use nano"<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 24 Jan 2017 20:35:15 -0500<br>
From: Steve Zingman <<a href="mailto:szingman@msgstor.com">szingman@msgstor.com</a>><br>
To: <a href="mailto:app_rpt-users@lists.allstarlink.org">app_rpt-users@lists.<wbr>allstarlink.org</a><br>
Subject: [App_rpt-users] Test<br>
Message-ID: <<a href="mailto:3ca0a459-09c2-1dfb-966c-fb8002aa78bc@msgstor.com">3ca0a459-09c2-1dfb-966c-<wbr>fb8002aa78bc@msgstor.com</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
Please ignore<br>
<br>
--<br>
"Real programmers us vi, that's why I use nano"<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Tue, 24 Jan 2017 21:41:24 -0500<br>
From: "DuaneVT ." <<a href="mailto:selkie2@comcast.net">selkie2@comcast.net</a>><br>
To: <a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a><br>
Subject: [App_rpt-users] crontab schedule repeater announcements<br>
Message-ID:<br>
<<wbr>CABhxdJn3xJpyqVrSYsuYYKi8mcrX+<wbr>U=<a href="mailto:U%2Bfz4M1ANmdwwKGdvRA@mail.gmail.com">U+fz4M1ANmdwwKGdvRA@mail.<wbr>gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I am having trouble getting crontab to schedule playing repeater<br>
announcements. I have successfully recorded IAX speech to "prompt01.gsm".<br>
<br>
I created a script /etc/asterisk/scripts/<wbr>announcements01.sh.<br>
<br>
#!/bin/bash<br>
# Script plays prompt01 audio files over local node (repeater)<br>
PATH=/usr/local/sbin:/usr/<wbr>local/bin:/usr/sbin:/usr/bin:/<wbr>sbin:/bin<br>
/usr/sbin/asterisk -rx "rpt localplay 42996 /etc/asterisk/scripts/<wbr>prompt01"<br>
<br>
Via terminal, I can enter "announcements01" and hear the node play the<br>
repeater announcements.<br>
<br>
My crontab -e is:<br>
SHELL=/bin/bash<br>
PATH=~/sbin:/bin:/usr/sbin:/<wbr>usr/bin:/etc/asterisk/scripts<br>
MAILTO=root<br>
HOME=/<br>
<br>
# I have tried all the following script treatments!<br>
# m h dom mon dow command<br>
<br>
* * * * * ./announcements01<br>
* * * * * ./announcements01.sh<br>
* * * * * . /announcements01.sh # dot space announcements01.sh<br>
* * * * * announcements01.sh # chmod u-x announcements01.sh (to make<br>
executable)<br>
<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-------------------------<br>
I have used the crontab to pass text to a file every minute..no problems;<br>
so cron is running.<br>
I am logged into ROOT.<br>
<br>
Any suggestions as to HOW to get crontab to run my announcements01.sh<br>
script would be MUCH appreciated!<br>
73,<br>
Duane KA1LM<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.allstarlink.org/pipermail/app_rpt-users/attachments/20170124/1cc5915d/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.allstarlink.org/<wbr>pipermail/app_rpt-users/<wbr>attachments/20170124/1cc5915d/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Tue, 24 Jan 2017 21:49:45 -0500<br>
From: Apu <<a href="mailto:apu@spfld.com">apu@spfld.com</a>><br>
To: Users of Asterisk app_rpt <<a href="mailto:app_rpt-users@lists.allstarlink.org">app_rpt-users@lists.<wbr>allstarlink.org</a>><br>
Subject: Re: [App_rpt-users] crontab schedule repeater announcements<br>
Message-ID: <<a href="mailto:b5628900-5c2a-ad28-3339-5b4a816290fb@spfld.com">b5628900-5c2a-ad28-3339-<wbr>5b4a816290fb@spfld.com</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
On 1/24/17 9:41 PM, DuaneVT . wrote:<br>
> MAILTO=root<br>
<br>
Are you getting e-mail messages to root with the errors, if any?<br>
<br>
<br>
> * * * * * ./announcements01<br>
> * * * * * ./announcements01.sh<br>
> * * * * * . /announcements01.sh # dot space announcements01.sh<br>
> * * * * * announcements01.sh # chmod u-x announcements01.sh (to<br>
> make executable)<br>
<br>
If the file is "announcements01.sh" in the /root directory, try<br>
/root/announcements01.sh as the path for the crontab entry. If I'm<br>
reading your crontab entry correctly, your system is trying to find the<br>
file at /announcements01 or /announcements01.sh but I think you might<br>
have it saved it /root/announcements01.sh -- just a guess though.<br>
<br>
(And you want u+x, not u-x, aka "chmod 0755 announcements01.sh")<br>
<br>
--<br>
_<br>
| |<br>
|-|<br>
| |pu <<a href="mailto:apu@spfld.com">apu@spfld.com</a>><br>
<a href="http://www.spfld.com/" rel="noreferrer" target="_blank">http://www.spfld.com/</a><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org">App_rpt-users@lists.<wbr>allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/<wbr>cgi-bin/mailman/listinfo/app_<wbr>rpt-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of App_rpt-users Digest, Vol 95, Issue 32<br>
******************************<wbr>***************<br>
</blockquote></div><br></div></div></div></div>