PDA

View Full Version : Perl Why WinNT server auto create CGItemp21312 file each time I run the Perl script ?



binladun
June 26th, 2003, 16:14
Hello!

I have Active Perl on my WinNT server machine. I've downloaded sendmail Perl script from Hotscripts.com - That script is working fine. But I don't know why each time I run that script - I looked at my "wwwroot" folder then I saw a lot of CGItemp3234 temp files.

I wrote the code to let the sendmail script auto delete those temp files but I got permission denied message (for sercurity I've set "wwwroot" folder is read only)

By the way, this is my question:

Is there a way to set the temp file will be stored inside folder wwwroot/temp (I will set "temp" folder is reasd+write+modify so that my script can auto delete the temp files)

Thanks for your help !
Regards!
Binladun
PS: Sorry about my English - I'm a Binladen's brother :)

zazoo
June 28th, 2003, 20:39
Im not sure why they appear (when I was IIs I got them too) but its not sendmail cause I didnt use that and I still got them

awayfromforum
July 3rd, 2003, 14:31
Perl has to be compiled by perl, and then it gets run, then this output it generates is output to the browser thru IIS, they can safely be deleted, but why delete it? If you dont delete it, it doesnt need to recompile it, causing it to be able to reply faster.

kevinmd88
September 27th, 2003, 13:31
For me, those files only seemed to appear when I used the CGI.pm read() method to upload a file. I think... :D