<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma">Bob,<br><br> The easiest way to execute scripts that command app_rpt is outside of rpt.conf in this way....<br><br>Create a script and store it somewhere (example) -<br><br>#! /bin/bash<br>/usr/sbin/asterisk -rx "rpt fun 27225 *7128190"<br>sleep 10<br>/usr/sbin/asterisk -rx "rpt fun 27225 *7327133"<br><br>I call this script alaska_connect and it is in /etc/asterisk/wa3dsp  Make sure it s executable - chmod 750 <filename><br><br>Then create a cron job to tell when to execute it -<br><br>44 12 * * 1-6 /etc/asterisk/wa3dsp/alaska_connect<br><br>This says execute /etc/asterisk/wa3dsp/alaska_connect at 12:44 (PM the clock is 24 hour) on Monday through Saturday<br><br>Use crontab -e   to edit  cron   or crontab -l to list what is there. Google cron or crontab to see cron options.<br><br>As you can see this has nothing to do with anything inside of rpt.conf  Remove any scheduled jobs in rpt.conf especially if they conflict with doing it in this way externally.<br><br>The script can be any system command or anything you could do from the command prompt, download a file, reboot the system, send commands to app_rpt, restart asterisk, whatever.<br><br></font><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">From: kk6ecm@gmail.com<br>To: app_rpt-users@ohnosec.org<br>Date: Sun, 9 Mar 2014 09:08:26 -0700<br>Subject: [App_rpt-users] app_rpt script execution<br><br>





<style><!--
.ExternalClass .ecxshape {
}
--></style>

<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxEmailStyle17 {
font-family:Arial;
color:navy;
}

.ExternalClass div.ecxSection1 {
}

--></style>





<div class="ecxSection1">

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;">I’m working on a node that downloads
a file from the internet weekly, but the time seems to vary. I want to change
this to a specific day and time each week, but cannot determine what is
activating the script. The script is located in /etc/asterisk/. rpt.conf uses
the file per its [schedule] stanza. I have two questions:</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Does the server only load/execute files in
/etc/asterisk each time asterisk is started?</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;">How can I setup the system so it executes
this script at a given time each week? </span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Thanks,</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Bob</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;">kk6ecm</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>

<div>

<div class="ecxMsoNormal" style="text-align:center;" align="center"><font face="Times New Roman" size="3"><span style="font-size:12.0pt;">

<hr tabindex="-1" align="center" size="2" width="100%">

</span></font></div>

<p class="ecxMsoNormal"><b><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma;">
app_rpt-users-bounces@ohnosec.org [mailto:app_rpt-users-bounces@ohnosec.org] <b><span style="font-weight:bold;">On Behalf Of </span></b>mike@midnighteng.com<br>
<b><span style="font-weight:bold;">Sent:</span></b> Sunday, March 09, 2014 8:24
AM<br>
<b><span style="font-weight:bold;">To:</span></b> app_rpt-users@ohnosec.org<br>
<b><span style="font-weight:bold;">Subject:</span></b> Re: [App_rpt-users] DTMF
A B C D</span></font></p>

</div>

<p class="ecxMsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt;"> </span></font></p>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"><br>
<br>
Yes Angelo, </span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;">you can use them but,</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;">just keep in mind the
full implications of using them for control op commands because you probably do
not have ABCD on your phone control system.</span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"> </span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;">...mike/kb8jnm</span></font></p>

</div>

<blockquote style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 6.0pt;" id="ecxreplyBlockquote">

<div id="ecxwmQuoteWrapper">

<p class="ecxMsoNormal" style=""><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;">--------
Original Message --------<br>
Subject: [App_rpt-users] DTMF A B C D<br>
From: Angelo Glorioso <<a href="mailto:n5uxt@hotmail.com">n5uxt@hotmail.com</a>><br>
Date: Sun, March 09, 2014 9:02 am<br>
To: "Allstar app_rpt-users Group" <<a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a>></span></font></p>

<div>

<p class="ecxMsoNormal"><font color="black" face="Arial Black" size="2"><span style="font-size:10.0pt;font-family:"Arial Black";color:black;">Hi all,</span></font><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"></span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"> </span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Arial Black" size="2"><span style="font-size:10.0pt;font-family:"Arial Black";color:black;">I realized this
has never been asked or I just can't find the answer.</span></font><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"></span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Arial Black" size="2"><span style="font-size:10.0pt;font-family:"Arial Black";color:black;">Can the A B C D
on the DTMF pad be used for control codes??</span></font><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"></span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"> </span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Arial Black" size="2"><span style="font-size:10.0pt;font-family:"Arial Black";color:black;">73 de Angelo</span></font><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"></span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"> </span></font></p>

</div>

<div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;"> </span></font></p>

</div>

<div class="ecxMsoNormal" style="text-align:center;" align="center"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p class="ecxMsoNormal"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black;">_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a><br>
<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a>
and scroll down to the bottom of the page. Enter your email address and press
the "Unsubscribe or edit options button"<br>
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. </span></font></p>

</div>

</blockquote>

</div>




<br>_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://ohnosec.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.</div>                                          </div></body>
</html>