Re: temp file deletion strategies?
| From: | Don Read | Date: | Wed, 15 Nov 2000 15:26:18 +0000 |
| Subject: | Re: temp file deletion strategies? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25455@lists.php.net to get a copy of this message | ||
On 15-Nov-00 David P. Schwartz wrote:
> you know you might have been doing this stuff too long when the obvious just
> ain't
> obvious any more (:-p
>
> thanks
> -David
>
> jeremy brand wrote:
>
>> you might just want to run a cron job.. something like this...
>>
>> #!/bin/sh
>> for i in
find /your/path -ctime -1 -print
>> do
>> rm -f "$i"
>> done
>>
Indeed
BSD'ish:
find ... -delete
SysV :
find ... -exec rm -f {} \;
Regards,
--
Don Read dread@texas.net
-- The problem with people who have no vices is that you can be
sure they're going to have some pretty annoying virtues.