David,<div> Thanks, the permissions for the directory itself is rwx for user, group, and everyone else (777). Normally I wouldn't set things this way, but this is just for testing.</div><div><br></div><div><br>/root itself could be the issue... Ill tear back into it tommorow. </div><div><span></span><br>On Friday, January 22, 2016, David McGough <<a href="mailto:kb4fxc@inttek.net">kb4fxc@inttek.net</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Steve,<br>
<br>
Check the permissions on the parent directories:<br>
<br>
ls -lisad /root<br>
ls -lisad /root/scripts<br>
<br>
...You need execute permissions for "other" users on each of these<br>
directories (like a chmod o+x /root; chmod o+x /root/scripts). Frequently,<br>
the root directory will only be mode 0700.<br>
<br>
73, David KB4FXC<br>
<br>
<br>
<br>
On Fri, 22 Jan 2016, Stephen - K1LNX wrote:<br>
<br>
> Thanks Steve, followed your example and looks like I needed a space between<br>
> the DTMF definition, the = sign and the command itself to work properly,<br>
> and it ran, but I still can't get my script to run in the /root/scripts<br>
> directory. My scripts don't have to live there, but I was setting it there<br>
> temporarily for testing.<br>
><br>
> I'm not sure why this isn't working.<br>
><br>
> On Fri, Jan 22, 2016 at 7:34 PM, Steve Zingman <<a href="javascript:;" onclick="_e(event, 'cvml', 'szingman@msgstor.com')">szingman@msgstor.com</a>> wrote:<br>
><br>
> > Stephen,<br>
> > Here is what I have:<br>
> ><br>
> > In rpt.conf:<br>
> > 966 = cmd,/tmp/ssz.sh<br>
> ><br>
> > in /tmp/ssz.sh:<br>
> > #! /bin/bash<br>
> > echo "Hello World" >/tmp/ssz.txt<br>
> ><br>
> > from the asterisk cli:<br>
> > *CLI> rpt debug level 0<br>
> > app_rpt Debugging disabled<br>
> > *CLI> rpt fun 2152 *966<br>
> > *CLI> [Jan 22 19:29:53] NOTICE[3303]: app_rpt.c:4008 function_cmd: cmd<br>
> > param = /tmp/ssz.sh, digitbuf =<br>
> ><br>
> > script ran<br>
> ><br>
> ><br>
> > Steve<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On 01/22/2016 06:22 PM, Stephen - K1LNX wrote:<br>
> ><br>
> > I am trying to get a script to execute based on a DTMF sequence and it's<br>
> > not working for whatever reason.<br>
> ><br>
> > I put the following in rpt.conf under the functions stanza:<br>
> ><br>
> > [functions2376]<br>
> ><br>
> > (default functions removed for readability)<br>
> ><br>
> > ; testing script functions<br>
> ><br>
> > 123=cmd,/root/scripts/test.sh<br>
> ><br>
> > The script is nothing more than a simple shell script for testing right<br>
> > now, I validated it worked:<br>
> ><br>
> > #!/bin/bash<br>
> ><br>
> > echo test1234 > test.out<br>
> ><br>
> > Permissions are set 777 on it to ensure it's able to be executed by<br>
> > anything, but when I go to the Asterisk console and execute:<br>
> ><br>
> > rpt fun 2376 *123<br>
> ><br>
> > The script does not execute. What is it I could be missing here if<br>
> > anything?<br>
> ><br>
> > tnx<br>
> ><br>
> > Stephen<br>
> ><br>
> > K1LNX<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > App_rpt-users mailing listApp_rpt-users@ohnosec.orghttp://<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">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.<br>
> ><br>
> ><br>
> > --<br>
> > "Anything is possible if you don't know what you are talking about."<br>
> > 1st Law of Logic<br>
> ><br>
> ><br>
><br>
<br>
</blockquote></div>