Permission prob running from within perl

I am attempting to run a proram from within a perl script.
using a system system("/path/path/path/cgi-bin/hitlog/ax.cgi");
but I keep getting a
FORBIDDEN you do not have access to cgi-bin/hitlog/ax.cgi
error, even though everthing works fine if run directly.
Who is Participating?
flivaudaConnect With a Mentor Commented:
Most likely you have a different directory mapping.   For me my webpage mapping is:
but my directory hieracrhy is

you need to make sure you have the correct path when you are making a system call
go into the directory and tpye pwd to find out the path your program needs to call
By directly do you mean you can run it from the prompt?  Make sure that you have access for all the paths leading up to the script you want it run.  nobody needs to be able to run it
global129Author Commented:
By running directly, i mean that i can run the cgi, by typing the path
I can even call it from an html page ie.
but from within a script?? can do!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.