Solved

Permission prob running from within perl

Posted on 1998-12-18
3
144 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 50 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
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…

726 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