Home > Archive > PERL Beginners > January 2007 > Perl/HTMl Upload: CGItemp*****
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Perl/HTMl Upload: CGItemp*****
|
|
| Gerald Wheeler 2007-01-22, 6:58 pm |
| I am running Perl on Solaris 9 SPARC
I have a huge number of very, very large files in /var/tmp with file
names as such: CGItempnnnn (n is a random number)
I am assumming that these files were created is association with a file
upload utility I have that uses HTML and Perl, one for each file
uploaded.
I clean up the actual uploaded files after 10 days... can I safely
delete all these (Perl created I assume) CGItempnnnnn files ??
Thanks
| |
|
| I think they are created by CGI.pm when you upload files using a
multipart/form-data POST request. You can delete them.
| |
| Tom Phoenix 2007-01-22, 6:58 pm |
| On 1/22/07, Gerald Wheeler <GWHEELER@uc.usbr.gov> wrote:
> I have a huge number of very, very large files in /var/tmp with file
> names as such: CGItempnnnn (n is a random number)
>
> I am assumming that these files were created is association with a file
> upload utility I have that uses HTML and Perl, one for each file
> uploaded.
>
> I clean up the actual uploaded files after 10 days... can I safely
> delete all these (Perl created I assume) CGItempnnnnn files ??
It sounds as if your upload utility isn't cleaning up its temporary
files. Why don't you fix it to do that? The unlink function is
documented in the perlfunc manpage. Cheers!
--Tom Phoenix
Stonehenge Perl Training
| |
| amphetamachine@gmail.com 2007-01-23, 7:04 pm |
| Make a cron script clean them up:
# crontab
# run at 2:15am every day (cleans up cgi temp files that haven't been
accessed in 30 days)
15 2 * * * find /var/tmp -maxdepth 1 -type f -iname cgitemp\*
-atime 30 -exec rm -f {} \;
On Jan 22, 12:39 pm, GWHEE...@uc.usbr.gov (Gerald Wheeler) wrote:
> I am running Perl on Solaris 9 SPARC
>
> I have a huge number of very, very large files in /var/tmp with file
> names as such: CGItempnnnn (n is a random number)
>
> I am assumming that these files were created is association with a file
> upload utility I have that uses HTML and Perl, one for each file
> uploaded.
>
> I clean up the actual uploaded files after 10 days... can I safely
> delete all these (Perl created I assume) CGItempnnnnn files ??
>
> Thanks
|
|
|
|
|