in reply to Deleting a Temp File
First, you would use File::Temp for create your temporary file, instead writing your own algorithm. Second, you would rely on some user session data, for to associate which file is related to that client. Another approach I think would be nice is using (again) File::Temp with your own prefix - for example, /var/log/mytempfiles - and cron to remove old files in that directory every 10 minutes or so.
Update: Corrected some english mistakes :-)
Igor 'izut' Sutton
your code, your rules.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deleting a Temp File
by Anonymous Monk on Aug 17, 2006 at 14:41 UTC | |
by izut (Chaplain) on Aug 17, 2006 at 15:50 UTC | |
by graff (Chancellor) on Aug 18, 2006 at 04:11 UTC |