<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Having the availability to use cron is one of the many great things about app_rpt. Here are a couple entries from my crontab. The first plays the time once every 3 hours between 6am and 9pm everyday. The second entry announces our net on Mondays between 6:10am and 7:10pm. </div><div><br></div><div>Both cron entries call scripts but the way Geoff did it is perfectly fine, it just a mater of preference. Also note the use of cmd and localplay rather than fun in these scripts. That way if the touch tones ever need to be changed the scripts will still run without modification. <div><div><br></div><div>>crontab -l</div><div>00 6-21/3 * * * /root/bin/2532time.sh</div><div>10 6-19 * * 1 /root/bin/racesnettonight.sh </div><div><br></div><div>Here are the scripts:</div><div><div>>cat /root/bin/2532time.sh</div><div>#! /bin/bash</div><div>/usr/sbin/asterisk -rx "rpt cmd 2532 status 12 0"</div></div><div><br></div><div><div>>cat /root/bin/racesnettonight.sh</div><div>!# /bin/bash</div><div>/usr/sbin/asterisk -rx "rpt localplay 2532 racesNet"</div></div><div><br></div><div>--</div><div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Tim<br>:wq</div></span></span>
</div>
<br><div><div>On Aug 7, 2013, at 7:21 AM, Geoff <<a href="mailto:w5omr@att.net">w5omr@att.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/01/2013 12:38 PM, Bryan D. Boyle
wrote:<br>
</div>
<blockquote cite="mid:3AF67A06-6F5E-4DD5-8388-FD1F79EE29C2@bdboyle.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div>read a msg i sent last night...it's in there as one of my
examples...<br>
</div>
<blockquote type="cite">
<div>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 9.00.8112.16496">
<style></style>
<div><font face="Arial" size="2">Hello everyone,</font></div>
<div><font face="Arial" size="2">How do I setup my node to say
time every hour. I'm using Acid on a neoware ca22. And
where should I put it? N5zua sit this up for me a few
years ago. So, seems to me, I need to to know the system
and play with it.</font></div>
<br>
</div>
</blockquote>
</blockquote>
<br>
I've been wanting to do the same, but didn't really want the silly
thing screaming the time all night long so, cron to the rescue!<br>
<br>
root@w5omr> crontab -e<br>
0 6-22 * * 1-5 /usr/sbin/asterisk -rx "rpt fun 29655 *81"<br>
0 8-22 * * 0,6 /usr/sbin/asterisk -rx "rpt fun 29655 *81"<br>
<br>
The first is to chime the hour, starting at 6am, and ending at 10pm,
Mon - Fri.<br>
Weekends, we sleep in... start at 8am, end at 10pm, Saturday and
Sunday.<br>
<br>
At least, that's -one- way of doing it.<br>
<br>
I'm sure it was you, Bryan, I have to thank for posting that
commands could be passed to a running session of asterisk. That's
when the light went off. Cron to the rescue ;-)<br>
<br>
This is useful also, if you want to setup times to link to specific
nodes, at a specific time. Figure out the schedule and cron it.<br>
<br>
Here's a good link if some system operators would like to know about
cron<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/">http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/</a><br>
<br>
<br>
73 = Best Regards,<br>
-Geoff/W5OMR<br>
</div>
_______________________________________________<br>App_rpt-users mailing list<br><a href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a><br>http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users<br></blockquote></div><br></div></div></div></body></html>