Solved

PERL, CGI, and WPOISON

Posted on 2004-08-31
2
374 Views
Last Modified: 2013-12-25
My question is related to implementing a cgi script written in perl.  This will run on an apache server.  Information about this script can be found at http://www.monkeys.com/wpoison/

The script file on my site can be found at www.certifiedcomputing.com/users/users.gms .  I have set ".gms" to be handled as a perl extension on the server.

My problem is that every time I attempt to run the script, I get the following error:
wpoison: Error unlinking file `/tmp/wpoison.words': Operation not permitted

Can anyone lend a hand with this one?
0
Comment
Question by:Steve3k
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 300 total points
ID: 11947660
I had a look at the source for wpoison and it is generally very well written (although I can see a few C'isms creeping in).

The error you are receiving is coming from the operating system.  It appears that /tmp on your system has unusual permissions.

Do you have command line access?  If not, try running the following script

#!/bin/sh
echo "Content-Type: text/plain"
echo
ls -ld /tmp
df
0
 
LVL 1

Author Comment

by:Steve3k
ID: 11948071
Cool!  You turned me on to the right track.  Apparently my host has a problem with people running this script.  I changed the name of the files the script creates, and it now runs like a champ.  ::happy dance::

Thanks a lot!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

705 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

14 Experts available now in Live!

Get 1:1 Help Now