Solved

dumb error ??

Posted on 2002-07-26
2
137 Views
Last Modified: 2010-03-05
I'm trying to set up a cron job for my cgi-script. But i'm getting the following error-message:

Permission denied at /home/wantedto/www/cgi-bin/2mripper.cgi line 76.
Content-type: text/html

I assume this means the line 'Content-type: text/html' may not be executed, but it must because I will get an error 500 message if i delete that line.  

My host is 2mhost.com, their support staff seem to be on vacation... i haven't heard from them since 3 days.
0
Comment
Question by:michael123199
2 Comments
 
LVL 10

Accepted Solution

by:
rj2 earned 50 total points
ID: 7181644
If the line in the script says just "Content-type: text/html", try to change it to  

print "Content-Type: text/html\n\n";

Also try to run command below
chmod 755 2mripper.cgi
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7183061
post the code here if whats mentioned above doesn't work.
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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

929 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

11 Experts available now in Live!

Get 1:1 Help Now