Web Hosting Talk







View Full Version : remove files


Fremont Servers
11-03-2001, 06:07 PM
I tried to remove some tmp<number>.txt files, but it recreated the files once I deleted it.

rm tmp<number>.txt

I checked the access files, and it came from a message forum.

I believe this is created by the message forum's script.

Does anyone know how to get it to stop creating these tmp<number>.txt files?

cperciva
11-03-2001, 06:39 PM
Two easy solutions:
1. Remove write permission to the directory.
2. Replace the files with symlinks to /dev/null.

Fremont Servers
11-03-2001, 07:29 PM
These files are found in /cgi-bin directory.

I wonder if these tmp<number>.txt, where <number> is the post number, are created by the message forum script.

Here is what I think, but I am not sure since I am not perl/cgi programmer. I think you have to configure the script to put the tmp<number>.txt is a directory...maybe /tmp directory.

I don't know why the script creates tmp<number>.txt files. Is there a purpose for it?