[asterisk-users] AGI script

michel freiha michofr at gmail.com
Fri Feb 20 15:05:20 CST 2009


Dear Sir,

I was just trying to find the solution...Now I give the file 755 to dial.pl

Kindly note if I run the script from shell using sudo everything looks
greate as below:
sudo /var/lib/asterisk/agi-bin/dial.pl
sudo: unable to execute /var/lib/asterisk/agi-bin/dial.pl: Success

Any suggestions?

Thanks

On Fri, Feb 20, 2009 at 10:23 PM, Steve Edwards
<asterisk.org at sedwards.com>wrote:

> On Fri, 20 Feb 2009, michel freiha wrote:
>
> > The file dial.pl is executable and own by root as you can see below
> >
> > ls -lrt
> > -rwxrwxrwx 1 root root   1865 Feb 20 21:18 dial.pl
>
> Using the "very large hammer" (AKA chmod 777) to "solve"
> permissions problems indicates a "very large gap" in understanding the
> implications.
>
> Think about what the following command executed by any user on your system
> would do:
>
>        echo "rm --force --recursive /" >dial.pl
>
> > Regarding the script debug test please find below what did I get:
> >
> > [root at switch1 agi-bin]# /usr/bin/perl -wc dial.pl
> > Can't locate Asterisk/AGI.pm in @INC (@INC contains:
>
> So now you have identified your problem -- you haven't satisfied the
> prerequisites for the script.
>
> Thanks in advance,
> ------------------------------------------------------------------------
> Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
> Newline                                             Fax: +1-760-731-3000
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090220/d4181735/attachment.htm 


More information about the asterisk-users mailing list