<div dir="ltr">Dear Sir,<br><br>I was just trying to find the solution...Now I give the file 755 to dial.pl<br><br>Kindly note if I run the script from shell using sudo everything looks greate as below:<br>sudo /var/lib/asterisk/agi-bin/dial.pl<br>
sudo: unable to execute /var/lib/asterisk/agi-bin/dial.pl: Success<br><br>Any suggestions?<br><br>Thanks<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 10:23 PM, Steve Edwards <span dir="ltr"><<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Fri, 20 Feb 2009, michel freiha wrote:<br>
<br>
</div><div class="Ih2E3d">> The file dial.pl is executable and own by root as you can see below<br>
><br>
> ls -lrt<br>
</div><div class="Ih2E3d">> -rwxrwxrwx 1 root root 1865 Feb 20 21:18 dial.pl<br>
<br>
</div>Using the "very large hammer" (AKA chmod 777) to "solve"<br>
permissions problems indicates a "very large gap" in understanding the<br>
implications.<br>
<br>
Think about what the following command executed by any user on your system<br>
would do:<br>
<br>
echo "rm --force --recursive /" >dial.pl<br>
<div class="Ih2E3d"><br>
> Regarding the script debug test please find below what did I get:<br>
><br>
> [root@switch1 agi-bin]# /usr/bin/perl -wc dial.pl<br>
> Can't locate Asterisk/AGI.pm in @INC (@INC contains:<br>
<br>
</div>So now you have identified your problem -- you haven't satisfied the<br>
prerequisites for the script.<br>
<div><div></div><div class="Wj3C7c"><br>
Thanks in advance,<br>
------------------------------------------------------------------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>