<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px">Do not modify root's permissions. If you do you will severely compromise security...<br><div id="yui_3_16_0_1_1453461925683_58725"><span></span></div><div id="yui_3_16_0_1_1453461925683_58701"> </div><div id="yui_3_16_0_1_1453461925683_58708" class="signature">Steven Donegan<br>KK6IVC General Class FCC License<br>FAA PP-ASEL Pilots License<br>Silver State Car #86<br>www.sscc.us</div><br> <div id="yui_3_16_0_1_1453461925683_58741" class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_1_1453461925683_58745" class="yahoo_quoted"> <div id="yui_3_16_0_1_1453461925683_58744" style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1453461925683_58743" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1453461925683_58742" dir="ltr"> <font id="yui_3_16_0_1_1453461925683_58746" face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> David McGough <kb4fxc@inttek.net><br> <b><span style="font-weight: bold;">To:</span></b> Stephen - K1LNX <k1lnx@k1lnx.net> <br><b><span style="font-weight: bold;">Cc:</span></b> "app_rpt-users@ohnosec.org" <app_rpt-users@ohnosec.org><br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, January 22, 2016 5:31 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [App_rpt-users] Executing a script - does not work<br> </font> </div> <div class="y_msg_container"><br><br clear="none">Steve,<br clear="none"><br clear="none">Check the permissions on the parent directories:<br clear="none"><br clear="none">ls -lisad /root<br clear="none">ls -lisad /root/scripts<br clear="none"><br clear="none">...You need execute permissions for "other" users on each of these <br clear="none">directories (like a chmod o+x /root; chmod o+x /root/scripts). Frequently, <br clear="none">the root directory will only be mode 0700.<br clear="none"><br clear="none">73, David KB4FXC<br clear="none"><br clear="none"><br clear="none"><div class="yqt8784135303" id="yqtfd10613"><br clear="none">On Fri, 22 Jan 2016, Stephen - K1LNX wrote:<br clear="none"><br clear="none">> Thanks Steve, followed your example and looks like I needed a space between<br clear="none">> the DTMF definition, the = sign and the command itself to work properly,<br clear="none">> and it ran, but I still can't get my script to run in the /root/scripts<br clear="none">> directory. My scripts don't have to live there, but I was setting it there<br clear="none">> temporarily for testing.<br clear="none">> <br clear="none">> I'm not sure why this isn't working.<br clear="none">> <br clear="none">> On Fri, Jan 22, 2016 at 7:34 PM, Steve Zingman <<a shape="rect" ymailto="mailto:szingman@msgstor.com" href="mailto:szingman@msgstor.com">szingman@msgstor.com</a>> wrote:<br clear="none">> <br clear="none">> > Stephen,<br clear="none">> > Here is what I have:<br clear="none">> ><br clear="none">> > In rpt.conf:<br clear="none">> > 966 = cmd,/tmp/ssz.sh<br clear="none">> ><br clear="none">> > in /tmp/ssz.sh:<br clear="none">> > #! /bin/bash<br clear="none">> > echo "Hello World" >/tmp/ssz.txt<br clear="none">> ><br clear="none">> > from the asterisk cli:<br clear="none">> > *CLI> rpt debug level 0<br clear="none">> > app_rpt Debugging disabled<br clear="none">> > *CLI> rpt fun 2152 *966<br clear="none">> > *CLI> [Jan 22 19:29:53] NOTICE[3303]: app_rpt.c:4008 function_cmd: cmd<br clear="none">> > param = /tmp/ssz.sh, digitbuf =<br clear="none">> ><br clear="none">> > script ran<br clear="none">> ><br clear="none">> ><br clear="none">> > Steve<br clear="none">> ><br clear="none">> ><br clear="none">> ><br clear="none">> ><br clear="none">> ><br clear="none">> > On 01/22/2016 06:22 PM, Stephen - K1LNX wrote:<br clear="none">> ><br clear="none">> > I am trying to get a script to execute based on a DTMF sequence and it's<br clear="none">> > not working for whatever reason.<br clear="none">> ><br clear="none">> > I put the following in rpt.conf under the functions stanza:<br clear="none">> ><br clear="none">> > [functions2376]<br clear="none">> ><br clear="none">> > (default functions removed for readability)<br clear="none">> ><br clear="none">> > ; testing script functions<br clear="none">> ><br clear="none">> > 123=cmd,/root/scripts/test.sh<br clear="none">> ><br clear="none">> > The script is nothing more than a simple shell script for testing right<br clear="none">> > now, I validated it worked:<br clear="none">> ><br clear="none">> > #!/bin/bash<br clear="none">> ><br clear="none">> > echo test1234 > test.out<br clear="none">> ><br clear="none">> > Permissions are set 777 on it to ensure it's able to be executed by<br clear="none">> > anything, but when I go to the Asterisk console and execute:<br clear="none">> ><br clear="none">> > rpt fun 2376 *123<br clear="none">> ><br clear="none">> > The script does not execute. What is it I could be missing here if<br clear="none">> > anything?<br clear="none">> ><br clear="none">> > tnx<br clear="none">> ><br clear="none">> > Stephen<br clear="none">> ><br clear="none">> > K1LNX<br clear="none">> ><br clear="none">> ><br clear="none">> > _______________________________________________<br clear="none">> > App_rpt-users mailing <a shape="rect" ymailto="mailto:listApp_rpt-users@ohnosec.orghttp" href="mailto:listApp_rpt-users@ohnosec.orghttp">listApp_rpt-users@ohnosec.orghttp</a>://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users<br clear="none">> ><br clear="none">> > To unsubscribe from this list please visit <a shape="rect" 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 clear="none">> > 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.<br clear="none">> ><br clear="none">> ><br clear="none">> > --<br clear="none">> > "Anything is possible if you don't know what you are talking about."<br clear="none">> > 1st Law of Logic<br clear="none">> ><br clear="none">> ><br clear="none">> <br clear="none"><br clear="none">_______________________________________________<br clear="none">App_rpt-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:App_rpt-users@ohnosec.org" href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a><br clear="none"><a shape="rect" 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 clear="none"><br clear="none">To unsubscribe from this list please visit <a shape="rect" 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 clear="none">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. <br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>