?
Solved

Permission prob running from within perl

Posted on 1998-12-18
3
Medium Priority
?
150 Views
Last Modified: 2010-03-05
I am attempting to run a proram from within a perl script.
using a system call...ie. 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.
0
Comment
Question by:global129
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Expert Comment

by:flivauda
ID: 1207018
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
0
 

Author Comment

by:global129
ID: 1207019
By running directly, i mean that i can run the cgi, by typing the path
i.e. http://www.whatever.com/path/path/cgi-bin/program.cgi
I can even call it from an html page ie.
<!--/path/path/cgi-bin/program.cgi-->
but from within a script??...no can do!
0
 
LVL 1

Accepted Solution

by:
flivauda earned 150 total points
ID: 1207020
Most likely you have a different directory mapping.   For me my webpage mapping is:
http://www.domain.com/cgi-bin/comm/domain
but my directory hieracrhy is
/space/comm/domain/cgi-bin

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
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question