Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PERL, CGI, and WPOISON

Posted on 2004-08-31
2
Medium Priority
?
407 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 1200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

886 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