Bug#485805: Add backticks.so CMD please

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Sep 11 12:31:45 UTC 2008


On Wed, Jun 11, 2008 at 06:06:10PM +0300, Arie Skliarouk wrote:
> Package: asterisk
> Version: 1:1.4.19.1~dfsg-1
> 
> I am using popular backticks command on asterisk. The command is described
> in detail at following URLs
> http://www.voip-info.org/wiki/view/Asterisk+cmd+Backticks
> http://henryjunior.com/blog/?p=18

I tweaked it a bit:

* Readded copyrights staatement
* Proper AST_MODULE define
* Documented the build command
* And even a small fix

I'm not sure how much I like it, though. I tried it:

exten => backticks,1,NoOp(backticks test)
exten => backticks,n,Backticks(testvar1,ls -l);       failed
exten => backticks,n,NoOp(got: ${testvar1})
exten => backticks,n,Backticks(testvar2,ls);          failed
exten => backticks,n,NoOp(got: ${testvar2})
exten => backticks,n,Backticks(testvar3,/bin/ls -l);  worked
exten => backticks,n,NoOp(got: ${testvar3})
exten => backticks,n,Backticks(testvar4,/bin/ls);     worked
exten => backticks,n,NoOp(got: ${testvar4})

So when using it, be sure to use full path.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app_backticks.c
Type: text/x-csrc
Size: 4045 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20080911/e4c4038e/attachment.c 


More information about the Pkg-voip-maintainers mailing list