Solved

Permission prob running from within perl

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is there a file descriptor created for logfile using by logmsg within Perl script 4 116
stftime format 4 55
Perl Frameworks 1 81
Export Variables in Perl 3 46
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now