delete certain files in /tmp directory

delete certain files in /tmp directory

Post by lh » Sun, 23 Feb 2003 04:56:55



I have a problem with the /tmp file filing up. Everytime a user launches
this app it saves the profile in the tmp directory.

I would like to run a cron that will delete files older than 30 days, BUT

 I have seen
find /tmp -type f -mtime +30 -exec rm -f {} ;


Laura

 
 
 

delete certain files in /tmp directory

Post by Tony Curti » Sun, 23 Feb 2003 04:59:33


>> On Fri, 21 Feb 2003 13:56:55 -0600,





 
 
 

delete certain files in /tmp directory

Post by Just Another Use » Sun, 23 Feb 2003 05:01:55


additional option and argument to find:


> I have a problem with the /tmp file filing up. Everytime a user launches
> this app it saves the profile in the tmp directory.

> I would like to run a cron that will delete files older than 30 days, BUT

>  I have seen
> find /tmp -type f -mtime +30 -exec rm -f {} ;


> Laura