Solved

Permission prob running from within perl

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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

717 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