[App_rpt-users] Executing a script - does not work

mike at midnighteng.com mike at midnighteng.com
Sat Jan 23 00:48:28 UTC 2016



The only thing I see is possibly a OWNERSHIP issue of the script file.

...mike/kb8jnm

> I am trying to get a script to execute based on a DTMF sequence and it's
> not working for whatever reason.
>
> I put the following in rpt.conf under the functions stanza:
>
> [functions2376]
>
> (default functions removed for readability)
>
> ; testing script functions
>
> 123=cmd,/root/scripts/test.sh
>
> The script is nothing more than a simple shell script for testing right
> now, I validated it worked:
>
> #!/bin/bash
>
> echo test1234 > test.out
>
> Permissions are set 777 on it to ensure it's able to be executed by
> anything, but when I go to the Asterisk console and execute:
>
> rpt fun 2376 *123
>
> The script does not execute. What is it I could be missing here if
> anything?
>
> tnx
>
> Stephen
>
> K1LNX
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at 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.





More information about the App_rpt-users mailing list