<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div><br><br></div><div>Bob,</div><div><br></div><div>Without knowing the exact nature, I can give some advice on this as I do run scripts from the app_rpt sched over the use of system cron and there are good and bad doing it that way.<br></div><div><br></div><div>But here is some guidance...</div><div><br></div><div>You can put the scripts in the /etc/asterisk folder (I use /etc/asterisk/scripts ) but you need to make sure you set file permissions to say 755 on the script file and be sure to call them specifically from their location or set a path to your directory. </div><div><br></div><div>Also note that any item you call in the script would have the same permission/path problem so do not assume you can run a file/command (as you would from "root" command line) without saying where it is with a path to it in the command line. And having the permissions set to run it.</div><div><br></div><div>If you are trying to keep security on files, you might run them as user: "asterisk". <br></div><div><br></div><div>Hope that is of some value...</div><div><br></div><div>...mike/kb8jnm<br></div><div><br></div><div><br></div>
<blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;">
<div id="wmQuoteWrapper">
-------- Original Message --------<br>
Subject: [App_rpt-users] app_rpt script execution<br>
From: "Bob" <<a href="mailto:kk6ecm@gmail.com">kk6ecm@gmail.com</a>><br>
Date: Sun, March 09, 2014 12:08 pm<br>
To: <<a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a>><br>
<br>
    <!--[if !mso]> <style>
 #wmQuoteWrapper v\:*  {behavior:url(#default#VML);}
 #wmQuoteWrapper o\:*  {behavior:url(#default#VML);}
 #wmQuoteWrapper w\:*  {behavior:url(#default#VML);}
 #wmQuoteWrapper .shape  {behavior:url(#default#VML);}

</style> <![endif]--> <style>
 #wmQuoteWrapper /* Font Definitions */ @font-face  {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;}
 #wmQuoteWrapper @font-face  {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;}
 #wmQuoteWrapper @font-face  {font-family:"Arial Black"; panose-1:2 11 10 4 2 1 2 2 2 4;}
 #wmQuoteWrapper /* Style Definitions */ p.MsoNormal, #wmQuoteWrapper li.MsoNormal, #wmQuoteWrapper div.MsoNormal  {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";}
 #wmQuoteWrapper a:link, #wmQuoteWrapper span.MsoHyperlink  {color:blue; text-decoration:underline;}
 #wmQuoteWrapper a:visited, #wmQuoteWrapper span.MsoHyperlinkFollowed  {color:blue; text-decoration:underline;}
 #wmQuoteWrapper span.EmailStyle17  {mso-style-type:personal-reply; font-family:Arial; color:navy;}
 #wmQuoteWrapper @page Section1  {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;}
 #wmQuoteWrapper div.Section1  {page:Section1;}

</style>   <div class="Section1"> <div class="MsoNormal" style="font-size:12pt;"><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:<o:p></o:p></span></font></div> <div class="MsoNormal" style="font-size:12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></div> <div class="MsoNormal" style="font-size:12pt;"><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?<o:p></o:p></span></font></div> <div class="MsoNormal" style="font-size:12pt;"><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? <o:p></o:p></span></font></div> <div class="MsoNormal" style="font-size:12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></div> <div class="MsoNormal" style="font-size:12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10.0pt;font-family:Arial;color:navy">Thanks,<o:p></o:p></span></font></div> <div class="MsoNormal" style="font-size:12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10.0pt;font-family:Arial;color:navy">Bob<o:p></o:p></span></font></div> <div class="MsoNormal" style="font-size:12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10.0pt;font-family:Arial;color:navy">kk6ecm<o:p></o:p></span></font></div> <div class="MsoNormal" style="font-size:12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></div> <div> <div class="MsoNormal" style="font-size:12pt;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> <div class="MsoNormal" style="font-size:12pt;"><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"> <a href="mailto:app_rpt-users-bounces@ohnosec.org">app_rpt-users-bounces@ohnosec.org</a> [<a href="mailto:app_rpt-users-bounces@ohnosec.org">mailto:app_rpt-users-bounces@ohnosec.org</a>] <b><span style="font-weight:bold">On Behalf Of </span></b><a href="mailto:mike@midnighteng.com">mike@midnighteng.com</a><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> <a href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a><br> <b><span style="font-weight:bold">Subject:</span></b> Re: [App_rpt-users] DTMF A B C D</span></font><o:p></o:p></div> </div> <div class="MsoNormal" style="font-size:12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12.0pt"><o:p> </o:p></span></font></div> <div> <div class="MsoNormal" style="font-size:12pt;"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black"><br> <br> Yes Angelo, <o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black">you can use them but,<o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><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.<o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black"><o:p> </o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black">...mike/kb8jnm<o:p></o:p></span></font></div> </div> <blockquote style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 6.0pt; margin-left:6.0pt;margin-top:5.0pt;margin-bottom:5.0pt" id="replyBlockquote" webmail="1"> <div id="wmQuoteWrapper"> <div class="MsoNormal" style="font-size:12pt;margin-bottom:12.0pt"><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 target="_blank" 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 target="_blank" href="mailto:app_rpt-users@ohnosec.org">app_rpt-users@ohnosec.org</a>><o:p></o:p></span></font></div> <div> <div class="MsoNormal" style="font-size:12pt;"><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"><o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black"> <o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><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"><o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><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"><o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black"> <o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><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"><o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black"> <o:p></o:p></span></font></div> </div> <div> <div class="MsoNormal" style="font-size:12pt;"><font color="black" face="Verdana" size="2"><span style="font-size:10.0pt;font-family:Verdana;color:black"> <o:p></o:p></span></font></div> </div> <div class="MsoNormal" style="font-size:12pt;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> <div class="MsoNormal" style="font-size:12pt;"><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 target="_blank" href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a><br> <a target="_blank" href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br> <br> To unsubscribe from this list please visit <a target="_blank" href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">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. <o:p></o:p></span></font></div> </div> </blockquote> </div>   <hr>_______________________________________________<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">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">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. 
</div>
</blockquote></span></body></html>